Public Member Functions | Data Fields | Protected Attributes | Friends

KogniMobil::RTDBConn Class Reference
[C++ Class for Connection Handling]

Connection to Real-time Vehicle Database Instantiating this class opens a Connection to the Database. At present there is no handle, because the connection is associated with the process ID. More...

#include <kogmo_rtdb_conn.hxx>

Public Member Functions

 RTDBConn (const char *procname, const float &cycletime=0.033, const char *dbhost="", const unsigned int &flags=0)
 Open Connection to the Database.
 RTDBConn (kogmo_rtdb_handle_t *db_h)
 RTDBConn (const RTDBConn &src)
 ~RTDBConn ()
 Close Connection (must be done at process exit).
kogmo_rtdb_objid_t getProcID () const
kogmo_rtdb_objid_t getOID () const
void CycleDone (const unsigned int &flags=0)
void SetStatus_Ok (const char *msg="")
void SetStatus_Waiting (const char *msg="")
void SetStatus_Busy (const char *msg="")
void SetStatus_Failure (const char *msg="")
void SetStatus_Warning (const char *msg="")
void SleepUntil (Timestamp ts)
void Sleep (const double &secs)
void WaitNextCycle ()
Timestamp getTimestamp ()
void setTimestamp (Timestamp currTime)
Timestamp getCycleTimestamp () const
kogmo_rtdb_handle_tgetHandle (void) const

Data Fields

kogmo_rtdb_handle_tdbc

Protected Attributes

bool connected
Timestamp cycle_ts
float cycle_period
kogmo_rtdb_objid_t proc_id

Friends

class RTDBObj

Detailed Description

Connection to Real-time Vehicle Database Instantiating this class opens a Connection to the Database. At present there is no handle, because the connection is associated with the process ID.

Definition at line 50 of file kogmo_rtdb_conn.hxx.


Constructor & Destructor Documentation

KogniMobil::RTDBConn::RTDBConn ( const char *  procname,
const float &  cycletime = 0.033,
const char *  dbhost = "",
const unsigned int &  flags = 0 
) [inline]

Open Connection to the Database.

Definition at line 64 of file kogmo_rtdb_conn.hxx.

KogniMobil::RTDBConn::RTDBConn ( kogmo_rtdb_handle_t db_h  )  [inline]

Definition at line 80 of file kogmo_rtdb_conn.hxx.

KogniMobil::RTDBConn::RTDBConn ( const RTDBConn src  )  [inline]

Definition at line 85 of file kogmo_rtdb_conn.hxx.

KogniMobil::RTDBConn::~RTDBConn (  )  [inline]

Close Connection (must be done at process exit).

Definition at line 92 of file kogmo_rtdb_conn.hxx.


Member Function Documentation

void KogniMobil::RTDBConn::CycleDone ( const unsigned int &  flags = 0  )  [inline]

Definition at line 115 of file kogmo_rtdb_conn.hxx.

Timestamp KogniMobil::RTDBConn::getCycleTimestamp (  )  const [inline]

Definition at line 178 of file kogmo_rtdb_conn.hxx.

kogmo_rtdb_handle_t* KogniMobil::RTDBConn::getHandle ( void   )  const [inline]

Definition at line 182 of file kogmo_rtdb_conn.hxx.

kogmo_rtdb_objid_t KogniMobil::RTDBConn::getOID (  )  const [inline]

Definition at line 104 of file kogmo_rtdb_conn.hxx.

kogmo_rtdb_objid_t KogniMobil::RTDBConn::getProcID (  )  const [inline]

Definition at line 100 of file kogmo_rtdb_conn.hxx.

Timestamp KogniMobil::RTDBConn::getTimestamp (  )  [inline]

Definition at line 170 of file kogmo_rtdb_conn.hxx.

void KogniMobil::RTDBConn::SetStatus_Busy ( const char *  msg = ""  )  [inline]

Definition at line 127 of file kogmo_rtdb_conn.hxx.

void KogniMobil::RTDBConn::SetStatus_Failure ( const char *  msg = ""  )  [inline]

Definition at line 131 of file kogmo_rtdb_conn.hxx.

void KogniMobil::RTDBConn::SetStatus_Ok ( const char *  msg = ""  )  [inline]

Definition at line 119 of file kogmo_rtdb_conn.hxx.

void KogniMobil::RTDBConn::SetStatus_Waiting ( const char *  msg = ""  )  [inline]

Definition at line 123 of file kogmo_rtdb_conn.hxx.

void KogniMobil::RTDBConn::SetStatus_Warning ( const char *  msg = ""  )  [inline]

Definition at line 135 of file kogmo_rtdb_conn.hxx.

void KogniMobil::RTDBConn::setTimestamp ( Timestamp  currTime  )  [inline]

Definition at line 174 of file kogmo_rtdb_conn.hxx.

void KogniMobil::RTDBConn::Sleep ( const double &  secs  )  [inline]

Definition at line 153 of file kogmo_rtdb_conn.hxx.

void KogniMobil::RTDBConn::SleepUntil ( Timestamp  ts  )  [inline]

Definition at line 147 of file kogmo_rtdb_conn.hxx.

void KogniMobil::RTDBConn::WaitNextCycle (  )  [inline]

Definition at line 162 of file kogmo_rtdb_conn.hxx.


Friends And Related Function Documentation

friend class RTDBObj [friend]

Definition at line 52 of file kogmo_rtdb_conn.hxx.


Field Documentation

Definition at line 56 of file kogmo_rtdb_conn.hxx.

Definition at line 58 of file kogmo_rtdb_conn.hxx.

Definition at line 57 of file kogmo_rtdb_conn.hxx.

Definition at line 54 of file kogmo_rtdb_conn.hxx.

Definition at line 59 of file kogmo_rtdb_conn.hxx.


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

Generated for KogMo-RTDB by Matthias.Goebl (mattias.goebl*kogmo-rtdb.de) - all rights reserved.