GlistEngine
Loading...
Searching...
No Matches
gDatabase Class Reference

#include <gDatabase.h>

Inheritance diagram for gDatabase:
Collaboration diagram for gDatabase:

Public Member Functions

 gDatabase ()
virtual ~gDatabase ()
bool load (const std::string &fullPath)
bool loadDatabase (std::string databasePath)
void close ()
std::string getPath ()
void execute (std::string statement, std::string id="0")
std::string getSelectData ()
bool hasSelectData ()
int getSelectDataNum ()
void getTableInfo (char ***sqlResult, int *rowNum, int *colNum)
void setDelimiter (std::string delimiter)
std::string getDelimiter ()
std::vector< std::string > getTableNames ()
std::vector< std::string > getColumnNames (std::string tableName)
std::string getColumnType (std::string tableName, std::string columnName)
Public Member Functions inherited from gObject
 gObject ()
void logi (std::string message)
void logd (std::string message)
void logw (std::string message)
void loge (std::string message)
void logi (std::string tag, std::string message)
void logd (std::string tag, std::string message)
void logw (std::string tag, std::string message)
void loge (std::string tag, std::string message)

Static Public Member Functions

static int callback (void *statementId, int argc, char **argv, char **azColName)
Static Public Member Functions inherited from gObject
static std::string gGetAppDir ()
static std::string gGetAssetsDir ()
static void gSetAssetsDir (std::string assetsDir)
static std::string gGetFilesDir ()
static std::string gGetImagesDir ()
static std::string gGetFontsDir ()
static std::string gGetModelsDir ()
static std::string gGetTexturesDir ()
static std::string gGetShadersDir ()
static std::string gGetSoundsDir ()
static std::string gGetDatabasesDir ()
static std::string gGetVideosDir ()
static void setCurrentResolution (int scalingNo, int currentResolutionNo)

Additional Inherited Members

Static Public Attributes inherited from gObject
static const int LOGLEVEL_SILENT
static const int LOGLEVEL_DEBUG
static const int LOGLEVEL_INFO
static const int LOGLEVEL_WARNING
static const int LOGLEVEL_ERROR
Static Protected Attributes inherited from gObject
static int renderpassnum
static int renderpassno
static int releasescaling
static int releaseresolution

Constructor & Destructor Documentation

◆ gDatabase()

gDatabase::gDatabase ( )

◆ ~gDatabase()

virtual gDatabase::~gDatabase ( )
virtual

Member Function Documentation

◆ callback()

int gDatabase::callback ( void * statementId,
int argc,
char ** argv,
char ** azColName )
static

◆ close()

void gDatabase::close ( )

◆ execute()

void gDatabase::execute ( std::string statement,
std::string id = "0" )

◆ getColumnNames()

std::vector< std::string > gDatabase::getColumnNames ( std::string tableName)

◆ getColumnType()

std::string gDatabase::getColumnType ( std::string tableName,
std::string columnName )

◆ getDelimiter()

std::string gDatabase::getDelimiter ( )

◆ getPath()

std::string gDatabase::getPath ( )

◆ getSelectData()

std::string gDatabase::getSelectData ( )

◆ getSelectDataNum()

int gDatabase::getSelectDataNum ( )

◆ getTableInfo()

void gDatabase::getTableInfo ( char *** sqlResult,
int * rowNum,
int * colNum )

◆ getTableNames()

std::vector< std::string > gDatabase::getTableNames ( )

◆ hasSelectData()

bool gDatabase::hasSelectData ( )

◆ load()

bool gDatabase::load ( const std::string & fullPath)

◆ loadDatabase()

bool gDatabase::loadDatabase ( std::string databasePath)

◆ setDelimiter()

void gDatabase::setDelimiter ( std::string delimiter)

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