MDBL Library
Public Member Functions | Protected Attributes | Private Member Functions | Friends
CField Class Reference

#include <Field.hpp>

List of all members.

Public Member Functions

CRowRow () const
CColumnColumn () const
int GetInt () const
int64 GetInt64 () const
double GetDouble () const
tchar GetChar () const
const tchar * GetString () const
bool GetBool () const
time_t GetDateTime () const
const CTimeStampGetTimeStamp () const
CValue GetValue () const
void * GetPtr () const
CRowGetRowPtr () const
CRow ** GetRowSetPtr () const
void GetRaw (void *pValue) const
void SetNull ()
void SetInt (int iValue)
void SetInt64 (int64 iValue)
void SetDouble (double dValue)
void SetChar (tchar cValue)
void SetString (const tchar *sValue)
void SetBool (bool bValue)
void SetDateTime (time_t tValue)
void SetTimeStamp (const CTimeStamp &tsValue)
void SetField (const CField &oValue)
void SetPtr (void *pValue)
void SetRowPtr (CRow *pValue)
void SetRowSetPtr (CRow **pValue)
void SetRaw (const void *pValue)
 operator int () const
 operator double () const
 operator tchar () const
 operator const tchar * () const
 operator bool () const
 operator time_t () const
 operator const CTimeStamp & () const
 operator CValue () const
 operator void * () const
 operator CRow * () const
 operator CRow ** () const
CFieldoperator= (const CNull &oNull)
CFieldoperator= (int iValue)
CFieldoperator= (double dValue)
CFieldoperator= (tchar cValue)
CFieldoperator= (const tchar *sValue)
CFieldoperator= (bool bValue)
CFieldoperator= (time_t tValue)
CFieldoperator= (const CTimeStamp &tsValue)
CFieldoperator= (const CField &oValue)
CFieldoperator= (void *pValue)
CFieldoperator= (CRow *pValue)
CFieldoperator= (CRow **pValue)
bool operator== (const CNull &oNull) const
bool operator!= (const CNull &oNull) const
bool operator== (int iValue) const
bool operator!= (int iValue) const
bool operator== (double dValue) const
bool operator!= (double dValue) const
bool operator== (tchar cValue) const
bool operator!= (tchar cValue) const
bool operator== (const tchar *sValue) const
bool operator!= (const tchar *sValue) const
bool operator== (bool bValue) const
bool operator!= (bool bValue) const
bool operator== (const CValue &oValue) const
bool operator!= (const CValue &oValue) const
bool operator== (const CField &oValue) const
bool operator!= (const CField &oValue) const
int Compare (const CField &oValue) const
int Compare (const CValue &oValue) const
bool Modified () const
CString Format (const tchar *pszFormat=NULL) const
CString DbgFormat () const

Protected Attributes

CRowm_oRow
CColumnm_oColumn
size_t m_nColumn
bool m_bModified
bool m_bNull
union {
   int *   m_pInt
   int64 *   m_pInt64
   double *   m_pDouble
   tchar *   m_pChar
   tchar *   m_pString
   bool *   m_pBool
   time_t *   m_pTimeT
   CTimeStamp *   m_pTimeStamp
   void *   m_pVoidPtr
   CRow *   m_pRowPtr
   CRow **   m_pRowSetPtr
}; 

Private Member Functions

 CField (CRow &oRow, CColumn &oColumn, size_t nColumn, bool bNull, void *pData)
 ~CField ()
void * operator new (size_t n, void *p)
void operator delete (void *p, void *p2)
void operator delete (void *p)
 CField (const CField &oValue)
void Updated ()
CString FormatTimeT (const tchar *pszFormat) const
CString FormatTimeStamp (const tchar *pszFormat) const
CString FormatBool (const tchar *pszFormat) const
int StrCmp (const tchar *pszRHS) const

Friends

class CRow

Constructor & Destructor Documentation

CField::CField ( CRow oRow,
CColumn oColumn,
size_t  nColumn,
bool  bNull,
void *  pData 
) [private]
CField::~CField ( ) [private]
CField::CField ( const CField oValue) [private]

Member Function Documentation

CRow & CField::Row ( ) const [inline]
CColumn & CField::Column ( ) const [inline]
int CField::GetInt ( ) const
int64 CField::GetInt64 ( ) const
double CField::GetDouble ( ) const
tchar CField::GetChar ( ) const
const tchar * CField::GetString ( ) const
bool CField::GetBool ( ) const
time_t CField::GetDateTime ( ) const
const CTimeStamp & CField::GetTimeStamp ( ) const
void * CField::GetPtr ( ) const
CRow * CField::GetRowPtr ( ) const
CRow ** CField::GetRowSetPtr ( ) const
void CField::GetRaw ( void *  pValue) const
void CField::SetNull ( )
void CField::SetInt ( int  iValue)
void CField::SetInt64 ( int64  iValue)
void CField::SetDouble ( double  dValue)
void CField::SetChar ( tchar  cValue)
void CField::SetString ( const tchar *  sValue)
void CField::SetBool ( bool  bValue)
void CField::SetDateTime ( time_t  tValue)
void CField::SetTimeStamp ( const CTimeStamp tsValue)
void CField::SetField ( const CField oValue)
void CField::SetPtr ( void *  pValue)
void CField::SetRowPtr ( CRow pValue)
void CField::SetRowSetPtr ( CRow **  pValue)
void CField::SetRaw ( const void *  pValue)
CField::operator int ( ) const [inline]
CField::operator double ( ) const [inline]
CField::operator tchar ( ) const [inline]
CField::operator const tchar * ( ) const [inline]
CField::operator bool ( ) const [inline]
CField::operator time_t ( ) const [inline]
CField::operator const CTimeStamp & ( ) const [inline]
CField::operator CValue ( ) const [inline]
CField::operator void * ( ) const [inline]
CField::operator CRow * ( ) const [inline]
CField::operator CRow ** ( ) const [inline]
CField & CField::operator= ( const CNull oNull) [inline]
CField & CField::operator= ( int  iValue) [inline]
CField & CField::operator= ( double  dValue) [inline]
CField & CField::operator= ( tchar  cValue) [inline]
CField & CField::operator= ( const tchar *  sValue) [inline]
CField & CField::operator= ( bool  bValue) [inline]
CField & CField::operator= ( time_t  tValue) [inline]
CField & CField::operator= ( const CTimeStamp tsValue) [inline]
CField & CField::operator= ( const CField oValue) [inline]
CField & CField::operator= ( void *  pValue) [inline]
CField & CField::operator= ( CRow pValue) [inline]
CField & CField::operator= ( CRow **  pValue) [inline]
bool CField::operator== ( const CNull oNull) const [inline]
bool CField::operator!= ( const CNull oNull) const [inline]
bool CField::operator== ( int  iValue) const [inline]
bool CField::operator!= ( int  iValue) const [inline]
bool CField::operator== ( double  dValue) const [inline]
bool CField::operator!= ( double  dValue) const [inline]
bool CField::operator== ( tchar  cValue) const [inline]
bool CField::operator!= ( tchar  cValue) const [inline]
bool CField::operator== ( const tchar *  sValue) const [inline]
bool CField::operator!= ( const tchar *  sValue) const [inline]
bool CField::operator== ( bool  bValue) const [inline]
bool CField::operator!= ( bool  bValue) const [inline]
bool CField::operator== ( const CValue oValue) const
bool CField::operator!= ( const CValue oValue) const [inline]
bool CField::operator== ( const CField oValue) const [inline]
bool CField::operator!= ( const CField oValue) const [inline]
int CField::Compare ( const CField oValue) const
int CField::Compare ( const CValue oValue) const
bool CField::Modified ( ) const [inline]
CString CField::Format ( const tchar *  pszFormat = NULL) const
CString CField::DbgFormat ( ) const
void * CField::operator new ( size_t  n,
void *  p 
) [inline, private]
void CField::operator delete ( void *  p,
void *  p2 
) [inline, private]
void CField::operator delete ( void *  p) [inline, private]
void CField::Updated ( ) [private]
CString CField::FormatTimeT ( const tchar *  pszFormat) const [private]
CString CField::FormatTimeStamp ( const tchar *  pszFormat) const [private]
CString CField::FormatBool ( const tchar *  pszFormat) const [private]
int CField::StrCmp ( const tchar *  pszRHS) const [private]

Friends And Related Function Documentation

friend class CRow [friend]

Member Data Documentation

CRow& CField::m_oRow [protected]
CColumn& CField::m_oColumn [protected]
size_t CField::m_nColumn [protected]
bool CField::m_bModified [protected]
bool CField::m_bNull [protected]
union { ... } [protected]

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