creaImageIO_lib
CppSQLite3Buffer Class Reference

#include <CppSQLite3.h>

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.

283 {
284 
285  mpBuf = 0;
286 
287 }
CppSQLite3Buffer::~CppSQLite3Buffer ( )

Definition at line 293 of file CppSQLite3.cpp.

References clear().

295 {
296 
297  clear();
298 
299 }

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().

307 {
308 
309  if (mpBuf)
310 
311  {
312 
313  sqlite3_free(mpBuf);
314 
315  mpBuf = 0;
316 
317  }
318 
319 
320 
321 }

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.

329 {
330 
331  clear();
332 
333  va_list va;
334 
335  va_start(va, szFormat);
336 
337  mpBuf = sqlite3_vmprintf(szFormat, va);
338 
339  va_end(va);
340 
341  return mpBuf;
342 
343 }

Here is the call graph for this function:

CppSQLite3Buffer::operator const char * ( )
inline

Definition at line 149 of file CppSQLite3.h.

References mpBuf.

149 { 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: