Jive reference manual
List of all members | Public Member Functions | Protected Member Functions
jive::util::StdDatabase Class Reference

#include <jive/util/StdDatabase.h>

Inheritance diagram for jive::util::StdDatabase:
Inheritance graph

Public Member Functions

 StdDatabase ()
 
 StdDatabase (const String &name, const Ref< ItemSet > &items)
 
 StdDatabase (const Self &rhs)
 
virtual void resetEvents ()
 
virtual void readFrom (ObjectInput &in)
 
virtual void writeTo (ObjectOutput &out) const
 
virtual Ref< Objectclone () const
 
virtual ItemSetgetRowItems () const
 
virtual void clearAll ()
 
virtual IntColumnaddIntColumn (const String &name)
 
virtual IntColumnfindIntColumn (const String &name) const
 
virtual IntColArray getIntColumns () const
 
virtual FloatColumnaddFloatColumn (const String &name)
 
virtual FloatColumnfindFloatColumn (const String &name) const
 
virtual FloatColArray getFloatColumns () const
 
- Public Member Functions inherited from jive::util::Database
virtual String getContext () const
 
String getTagName () const
 
virtual void clearData ()
 
virtual void trimToSize ()
 
IntColumngetIntColumn (const String &name) const
 
FloatColumngetFloatColumn (const String &name) const
 
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...
 

Protected Member Functions

virtual ~StdDatabase ()
 
virtual void emitEvents_ (int events)
 
- Protected Member Functions inherited from jive::util::Database
 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 ()
 
- Protected Member Functions inherited from jem::Interface
virtual ~Interface ()
 Empty destructor. More...
 
- Protected Member Functions inherited from jem::Clonable
virtual ~Clonable ()
 
virtual void emitVTable_ ()
 
- Protected Member Functions inherited from jem::io::Serializable
virtual ~Serializable ()
 
virtual void emitVtableFunc_ ()
 

Additional Inherited Members

- Public Types inherited from jive::util::Database
typedef IntDBColumn IntColumn
 
typedef FloatDBColumn FloatColumn
 
typedef jem::Array< IntColumn * > IntColArray
 
typedef jem::Array< FloatColumn * > FloatColArray
 
- Static Public Member Functions inherited from jive::util::Database
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 inherited from jive::util::Database
Event< Self & > newValuesEvent
 
Event< Self & > newStructEvent
 
- Static Public Attributes inherited from jive::util::Database
static const char * MAIN_DB
 
- Protected Attributes inherited from jem::NamedObject
String myName_
 

Detailed Description

Examples:
Database.cpp.

Constructor & Destructor Documentation

jive::util::StdDatabase::StdDatabase ( )
jive::util::StdDatabase::StdDatabase ( const String name,
const Ref< ItemSet > &  items 
)
jive::util::StdDatabase::StdDatabase ( const Self &  rhs)
virtual jive::util::StdDatabase::~StdDatabase ( )
protectedvirtual

Member Function Documentation

virtual void jive::util::StdDatabase::resetEvents ( )
virtual
virtual void jive::util::StdDatabase::readFrom ( ObjectInput in)
virtual

Implements jem::io::Serializable.

virtual void jive::util::StdDatabase::writeTo ( ObjectOutput out) const
virtual

Implements jem::io::Serializable.

virtual Ref<Object> jive::util::StdDatabase::clone ( ) const
virtual

Implements jem::Clonable.

virtual ItemSet* jive::util::StdDatabase::getRowItems ( ) const
virtual

Implements jive::util::Database.

virtual void jive::util::StdDatabase::clearAll ( )
virtual

Implements jive::util::Database.

virtual IntColumn* jive::util::StdDatabase::addIntColumn ( const String name)
virtual

Implements jive::util::Database.

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

Reimplemented from jive::util::Database.

virtual IntColArray jive::util::StdDatabase::getIntColumns ( ) const
virtual

Implements jive::util::Database.

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

Implements jive::util::Database.

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

Reimplemented from jive::util::Database.

virtual FloatColArray jive::util::StdDatabase::getFloatColumns ( ) const
virtual

Implements jive::util::Database.

virtual void jive::util::StdDatabase::emitEvents_ ( int  events)
protectedvirtual