Logo Search packages:      
Sourcecode: barry version File versions  Download package

Barry::Mode::Desktop Class Reference

#include <m_desktop.h>

List of all members.


Detailed Description

The main interface class to the device databases.

To use this class, use the following steps:

Definition at line 53 of file m_desktop.h.


Public Types

enum  CommandType { Unknown, DatabaseAccess }

Public Member Functions

void AddRecord (unsigned int dbId, Builder &build)
template<class RecordT>
void AddRecordByType (uint32_t recordId, const RecordT &rec)
void ClearDirty (unsigned int dbId, unsigned int stateTableIndex)
void DeleteRecord (unsigned int dbId, unsigned int stateTableIndex)
 Desktop (Controller &con)
unsigned int GetDBCommand (CommandType ct)
const DatabaseDatabase & GetDBDB () const
unsigned int GetDBID (const std::string &name) const
void GetRecord (unsigned int dbId, unsigned int stateTableIndex, Parser &parser)
void GetRecordStateTable (unsigned int dbId, RecordStateTable &result)
void LoadDatabase (unsigned int dbId, Parser &parser)
template<class StorageT>
void LoadDatabaseByName (const std::string &name, StorageT &store)
template<class RecordT, class StorageT>
void LoadDatabaseByType (StorageT &store)
void Open (const char *password=0)
void RetryPassword (const char *password)
void SaveDatabase (unsigned int dbId, Builder &builder)
template<class StorageT>
void SaveDatabaseByName (const std::string &name, StorageT &store)
template<class RecordT, class StorageT>
void SaveDatabaseByType (StorageT &store)
void SetRecord (unsigned int dbId, unsigned int stateTableIndex, Builder &build)

Protected Member Functions

void LoadCommandTable ()
void LoadDBDB ()

Private Attributes

CommandTable m_commandTable
Controllerm_con
DatabaseDatabase m_dbdb
uint16_t m_ModeSocket
SocketHandle m_socket

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index