Kigs Framework  Doc version 0.8
Open source multi purpose Rapid Application Development framework
SQLiteDB.inl.h
1 
2 #include "FilePathManager.h"
3 #include "ModuleFileManager.h"
4 
5 bool SQLiteDB::ExistDatabase(const char * dbName)
6 {
7  FilePathManager* pathManager = reinterpret_cast<FilePathManager*>(Core::GetSingleton(_S_2_ID("FilePathManager")));
8  kstl::string L_Path;
9  kstl::string filePath = FilePathManager::DevicePath(dbName, FilePathManager::APPLICATION_STORAGE);
10 
11  SmartPointer<FileHandle> fullfilenamehandle = Platform_fopen(filePath.c_str(), "rb");
12  if (fullfilenamehandle->myFile)
13  {
14  Platform_fclose(fullfilenamehandle);
15  return true;
16  }
17 
18  return false;
19 }
FilePathManager::DevicePath
static std::string DevicePath(const std::string &filename, DeviceID)
construct path according to device
Definition: FilePathManager.cpp:561
ModuleFileManager.h
FilePathManager.h
Platform agnostic FileHandle.
FilePathManager
Definition: FilePathManager.h:137