Jive reference manual
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions
jive::util::Database Class Referenceabstract

#include <jive/util/Database.h>

Inheritance diagram for jive::util::Database:
Inheritance graph

Public Types

typedef IntDBColumn IntColumn
 
typedef FloatDBColumn FloatColumn
 
typedef jem::Array< IntColumn * > IntColArray
 
typedef jem::Array< FloatColumn * > FloatColArray
 

Public Member Functions

virtual String getContext () const
 
String getTagName () const
 
virtual ItemSetgetRowItems () const =0
 
virtual void clearData ()
 
virtual void clearAll ()=0
 
virtual void trimToSize ()
 
virtual IntColumnaddIntColumn (const String &name)=0
 
virtual IntColumnfindIntColumn (const String &name) const
 
IntColumngetIntColumn (const String &name) const
 
virtual IntColArray getIntColumns () const =0
 
virtual FloatColumnaddFloatColumn (const String &name)=0
 
virtual FloatColumnfindFloatColumn (const String &name) const
 
FloatColumngetFloatColumn (const String &name) const
 
virtual FloatColArray getFloatColumns () const =0
 
virtual void printTo (PrintWriter &out) const
 
void store (const Properties &globdat) const
 
void store (const String &name, const Properties &globdat) const
 
- Public Member Functions inherited from jem::NamedObject
 NamedObject (const String &name="")
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
String getName () const
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 
- Public Member Functions inherited from jive::util::EventSource
virtual void resetEvents ()=0
 

Static Public Member Functions

static String getTagName (const String &rowItemName)
 
static void printSome (PrintWriter &out, const Dictionary &dbases, const String &tag="")
 
static void printAll (PrintWriter &out, const Properties &globdat)
 
static Ref< Self > find (const Ref< ItemSet > &items, const Properties &globdat)
 
static Ref< Databasefind (const String &name, const Ref< ItemSet > &items, const Properties &globdat)
 
static Ref< Self > get (const Ref< ItemSet > &items, const Properties &globdat, const String &context)
 
static Ref< Databaseget (const String &name, const Ref< ItemSet > &items, const Properties &globdat, const String &context)
 
static Ref< DictionaryfindFor (const Ref< ItemSet > &items, const Properties &globdat)
 
static Ref< DictionarygetFor (const Ref< ItemSet > &items, const Properties &globdat)
 
- Static Public Member Functions inherited from jem::NamedObject
static String makeContext (const String &kind, const String &name)
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

Public Attributes

Event< Self & > newValuesEvent
 
Event< Self & > newStructEvent
 

Static Public Attributes

static const char * MAIN_DB
 

Protected Member Functions

 Database (const String &name="")
 
virtual ~Database ()
 
- Protected Member Functions inherited from jem::NamedObject
virtual ~NamedObject ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 
- Protected Member Functions inherited from jive::util::EventSource
virtual ~EventSource ()
 
virtual void emitEvents_ (int events)=0
 
- Protected Member Functions inherited from jem::Interface
virtual ~Interface ()
 Empty destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from jem::NamedObject
String myName_
 

Detailed Description

Examples:
Database.cpp, and DataParser.cpp.

Member Typedef Documentation

Constructor & Destructor Documentation

jive::util::Database::Database ( const String name = "")
explicitprotected
virtual jive::util::Database::~Database ( )
protectedvirtual

Member Function Documentation

virtual String jive::util::Database::getContext ( ) const
virtual

Reimplemented from jem::NamedObject.

String jive::util::Database::getTagName ( ) const
static String jive::util::Database::getTagName ( const String rowItemName)
static
virtual ItemSet* jive::util::Database::getRowItems ( ) const
pure virtual

Implemented in jive::util::StdDatabase.

virtual void jive::util::Database::clearData ( )
virtual
virtual void jive::util::Database::clearAll ( )
pure virtual

Implemented in jive::util::StdDatabase.

virtual void jive::util::Database::trimToSize ( )
virtual
virtual IntColumn* jive::util::Database::addIntColumn ( const String name)
pure virtual

Implemented in jive::util::StdDatabase.

virtual IntColumn* jive::util::Database::findIntColumn ( const String name) const
virtual

Reimplemented in jive::util::StdDatabase.

IntColumn* jive::util::Database::getIntColumn ( const String name) const
virtual IntColArray jive::util::Database::getIntColumns ( ) const
pure virtual

Implemented in jive::util::StdDatabase.

virtual FloatColumn* jive::util::Database::addFloatColumn ( const String name)
pure virtual

Implemented in jive::util::StdDatabase.

virtual FloatColumn* jive::util::Database::findFloatColumn ( const String name) const
virtual

Reimplemented in jive::util::StdDatabase.

FloatColumn* jive::util::Database::getFloatColumn ( const String name) const
virtual FloatColArray jive::util::Database::getFloatColumns ( ) const
pure virtual

Implemented in jive::util::StdDatabase.

virtual void jive::util::Database::printTo ( PrintWriter out) const
virtual
static void jive::util::Database::printSome ( PrintWriter out,
const Dictionary dbases,
const String tag = "" 
)
static
static void jive::util::Database::printAll ( PrintWriter out,
const Properties globdat 
)
static
void jive::util::Database::store ( const Properties globdat) const
void jive::util::Database::store ( const String name,
const Properties globdat 
) const
Ref< Database > jive::util::Database::find ( const Ref< ItemSet > &  items,
const Properties globdat 
)
static
static Ref<Database> jive::util::Database::find ( const String name,
const Ref< ItemSet > &  items,
const Properties globdat 
)
static
Ref< Database > jive::util::Database::get ( const Ref< ItemSet > &  items,
const Properties globdat,
const String context 
)
static
static Ref<Database> jive::util::Database::get ( const String name,
const Ref< ItemSet > &  items,
const Properties globdat,
const String context 
)
static
static Ref<Dictionary> jive::util::Database::findFor ( const Ref< ItemSet > &  items,
const Properties globdat 
)
static
static Ref<Dictionary> jive::util::Database::getFor ( const Ref< ItemSet > &  items,
const Properties globdat 
)
static

Member Data Documentation

const char* jive::util::Database::MAIN_DB
static
Event< Self& > jive::util::Database::newValuesEvent
Event< Self& > jive::util::Database::newStructEvent