Public Member Functions | Private Attributes

CppSQLite3Buffer Class Reference

#include <CppSQLite3.h>

List of all members.

Public Member Functions

 CppSQLite3Buffer ()
 ~CppSQLite3Buffer ()
const char * format (const char *szFormat,...)
 operator const char * ()
void clear ()

Private Attributes

char * mpBuf

Detailed Description

Definition at line 129 of file CppSQLite3.h.


Constructor & Destructor Documentation

CppSQLite3Buffer::CppSQLite3Buffer (  ) 

Definition at line 281 of file CppSQLite3.cpp.

References mpBuf.

{

        mpBuf = 0;

}

CppSQLite3Buffer::~CppSQLite3Buffer (  ) 

Definition at line 293 of file CppSQLite3.cpp.

References clear().

{

        clear();

}

Here is the call graph for this function:


Member Function Documentation

void CppSQLite3Buffer::clear (  ) 

Definition at line 305 of file CppSQLite3.cpp.

References mpBuf.

Referenced by format(), and ~CppSQLite3Buffer().

{

        if (mpBuf)

        {

                sqlite3_free(mpBuf);

                mpBuf = 0;

        }



}

Here is the caller graph for this function:

const char * CppSQLite3Buffer::format ( const char *  szFormat,
  ... 
)

Definition at line 327 of file CppSQLite3.cpp.

References clear(), and mpBuf.

{

        clear();

        va_list va;

        va_start(va, szFormat);

        mpBuf = sqlite3_vmprintf(szFormat, va);

        va_end(va);

        return mpBuf;

}

Here is the call graph for this function:

CppSQLite3Buffer::operator const char * (  )  [inline]

Definition at line 149 of file CppSQLite3.h.

References mpBuf.

{ return mpBuf; }


Member Data Documentation

char* CppSQLite3Buffer::mpBuf [private]

Definition at line 161 of file CppSQLite3.h.

Referenced by clear(), CppSQLite3Buffer(), format(), and operator const char *().


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