class DataStore

Class that specifies access signature foe abstract data storage

Inheritance:


Public Methods

virtual void addGroup( const string& group ) throw(VException&)
add a new group
virtual string getItem( const string& group, const string& name ) throw(VException&)
get the specified item
virtual int getItemSize( const string& group, const string& name ) throw(VException&)
get the size in bytes of the data in the specified item
virtual TimeStamp getItemTimeStamp( const string& group, const string& name ) throw(VException&)
get the last modification time for the specfied item
virtual bool isGroup( const string& group)
return true if the group exists
virtual bool isItem( const string& group, const string& name) throw(VException&)
Return true if the specified item exists
virtual StringList listGroups()
get a list of all groups
virtual StringList listItems(const string& group) throw(VException&)
get list of all items in this group
virtual void putItem( const string& group, const string& name, const string& data, TimeStamp timeStamp = 0 ) throw(VException&)
store the data into the specified item, it time is not specifeid, current time is used
virtual void removeGroup( const string& group) throw(VException&)
remove a group
virtual void removeItem( const string& group, const string& name) throw(VException&)
Remove the specified item
virtual ~DataStore()

Protected Fields

const int aproxNumUsers
best gueses on total number of users

Protected Methods

DataStore( int aproxNumUsersP )

Documentation

Class that specifies access signature foe abstract data storage
DataStore( int aproxNumUsersP )

virtual ~DataStore()

virtual string getItem( const string& group, const string& name ) throw(VException&)
get the specified item

virtual TimeStamp getItemTimeStamp( const string& group, const string& name ) throw(VException&)
get the last modification time for the specfied item

virtual int getItemSize( const string& group, const string& name ) throw(VException&)
get the size in bytes of the data in the specified item

virtual void putItem( const string& group, const string& name, const string& data, TimeStamp timeStamp = 0 ) throw(VException&)
store the data into the specified item, it time is not specifeid, current time is used

virtual void removeItem( const string& group, const string& name) throw(VException&)
Remove the specified item

virtual bool isItem( const string& group, const string& name) throw(VException&)
Return true if the specified item exists

virtual StringList listItems(const string& group) throw(VException&)
get list of all items in this group

virtual void addGroup( const string& group ) throw(VException&)
add a new group

virtual void removeGroup( const string& group) throw(VException&)
remove a group

virtual bool isGroup( const string& group)
return true if the group exists

virtual StringList listGroups()
get a list of all groups

const int aproxNumUsers
best gueses on total number of users


Direct child classes:
FileDataStore

alphabetic index hierarchy of classes


generated by doc++