MySqlDatastore Class Reference

#include <MySqlDatastore.h>

Inheritance diagram for MySqlDatastore:

FE_Datastore Channel List of all members.

Public Member Functions

 MySqlDatastore (const char *databaseName, Domain &theDomain, FEM_ObjectBroker &theBroker, int dbRun=0)
 MySqlDatastore (const char *databaseName, const char *host, const char *user, const char *passwd, unsigned int port, const char *socket, unsigned int clientFlag, Domain &theDomain, FEM_ObjectBroker &theBroker, int dbRun=0)
 ~MySqlDatastore ()
int sendMsg (int dbTag, int commitTag, const Message &, ChannelAddress *theAddress=0)
int recvMsg (int dbTag, int commitTag, Message &, ChannelAddress *theAddress=0)
int sendMatrix (int dbTag, int commitTag, const Matrix &theMatrix, ChannelAddress *theAddress=0)
int recvMatrix (int dbTag, int commitTag, Matrix &theMatrix, ChannelAddress *theAddress=0)
int sendVector (int dbTag, int commitTag, const Vector &theVector, ChannelAddress *theAddress=0)
int recvVector (int dbTag, int commitTag, Vector &theVector, ChannelAddress *theAddress=0)
int sendID (int dbTag, int commitTag, const ID &theID, ChannelAddress *theAddress=0)
int recvID (int dbTag, int commitTag, ID &theID, ChannelAddress *theAddress=0)
int createTable (const char *tableName, int numColumns, char *columns[])
int insertData (const char *tableName, char *columns[], int commitTag, const Vector &data)
int getData (const char *tableName, char *columns[], int commitTag, Vector &data)
int setDbRun (int run)
int getDbRun (void)

Protected Member Functions

int createOpenSeesDatabase (const char *projectName)
int execute (const char *query)

Detailed Description

Definition at line 42 of file MySqlDatastore.h.


Constructor & Destructor Documentation

MySqlDatastore::MySqlDatastore ( const char *  databaseName,
Domain theDomain,
FEM_ObjectBroker theBroker,
int  dbRun = 0 
)

Definition at line 36 of file MySqlDatastore.cpp.

References endln, and opserr.

MySqlDatastore::MySqlDatastore ( const char *  databaseName,
const char *  host,
const char *  user,
const char *  passwd,
unsigned int  port,
const char *  socket,
unsigned int  clientFlag,
Domain theDomain,
FEM_ObjectBroker theBroker,
int  dbRun = 0 
)

Definition at line 72 of file MySqlDatastore.cpp.

References endln, and opserr.

MySqlDatastore::~MySqlDatastore (  ) 

Definition at line 115 of file MySqlDatastore.cpp.


Member Function Documentation

int MySqlDatastore::sendMsg ( int  dbTag,
int  commitTag,
const Message ,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 126 of file MySqlDatastore.cpp.

References opserr.

int MySqlDatastore::recvMsg ( int  dbTag,
int  commitTag,
Message ,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 135 of file MySqlDatastore.cpp.

References opserr.

int MySqlDatastore::sendMatrix ( int  dbTag,
int  commitTag,
const Matrix theMatrix,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 146 of file MySqlDatastore.cpp.

References Matrix::data, Matrix::dataSize, endln, MAX_BLOB_SIZE, and opserr.

int MySqlDatastore::recvMatrix ( int  dbTag,
int  commitTag,
Matrix theMatrix,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 213 of file MySqlDatastore.cpp.

References Matrix::data, Matrix::dataSize, endln, and opserr.

int MySqlDatastore::sendVector ( int  dbTag,
int  commitTag,
const Vector theVector,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 290 of file MySqlDatastore.cpp.

References endln, MAX_BLOB_SIZE, opserr, Vector::sz, and Vector::theData.

int MySqlDatastore::recvVector ( int  dbTag,
int  commitTag,
Vector theVector,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 357 of file MySqlDatastore.cpp.

References endln, opserr, Vector::sz, and Vector::theData.

int MySqlDatastore::sendID ( int  dbTag,
int  commitTag,
const ID theID,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 433 of file MySqlDatastore.cpp.

References ID::data, endln, int(), MAX_BLOB_SIZE, opserr, and ID::sz.

int MySqlDatastore::recvID ( int  dbTag,
int  commitTag,
ID theID,
ChannelAddress theAddress = 0 
) [virtual]

Implements Channel.

Definition at line 500 of file MySqlDatastore.cpp.

References ID::data, endln, int(), opserr, and ID::sz.

int MySqlDatastore::createTable ( const char *  tableName,
int  numColumns,
char *  columns[] 
) [virtual]

Reimplemented from FE_Datastore.

Definition at line 578 of file MySqlDatastore.cpp.

References endln, ER_TABLE_EXISTS_ERROR, and opserr.

int MySqlDatastore::insertData ( const char *  tableName,
char *  columns[],
int  commitTag,
const Vector data 
) [virtual]

Reimplemented from FE_Datastore.

Definition at line 628 of file MySqlDatastore.cpp.

References endln, opserr, and Vector::Size().

int MySqlDatastore::getData ( const char *  tableName,
char *  columns[],
int  commitTag,
Vector data 
) [virtual]

Reimplemented from FE_Datastore.

Definition at line 683 of file MySqlDatastore.cpp.

References endln, opserr, Vector::sz, and Vector::theData.

int MySqlDatastore::setDbRun ( int  run  ) 

Definition at line 757 of file MySqlDatastore.cpp.

int MySqlDatastore::getDbRun ( void   ) 

Definition at line 764 of file MySqlDatastore.cpp.

int MySqlDatastore::createOpenSeesDatabase ( const char *  projectName  )  [protected]

Definition at line 771 of file MySqlDatastore.cpp.

References opserr.

int MySqlDatastore::execute ( const char *  query  )  [protected]

Definition at line 830 of file MySqlDatastore.cpp.

References endln, and opserr.


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

Generated on Mon Oct 23 15:05:46 2006 for OpenSees by doxygen 1.5.0