23 #ifndef LIGHTAPP_DRIVER_H
24 #define LIGHTAPP_DRIVER_H
33 #pragma warning( disable:4251 )
47 virtual bool SaveDatasInFile (
const char* theFileName,
bool isMultiFile);
48 virtual bool ReadDatasFromFile (
const char* theFileName,
bool isMultiFile);
49 virtual std::string GetTmpDir (
const char* theURL,
const bool isMultiFile);
51 ListOfFiles GetListOfFiles (
const char* theModuleName);
52 virtual void SetListOfFiles (
const char* theModuleName,
const ListOfFiles theListOfFiles);
53 virtual void RemoveTemporaryFiles(
const char* theModuleName,
const bool IsDirDeleted);
54 void RemoveFiles(
const ListOfFiles& theFiles,
const bool IsDirDeleted);
56 virtual void ClearDriverContents();
59 void PutFilesToStream(
const std::string& theModuleName,
unsigned char*& theBuffer,
60 long& theBufferSize,
bool theNamesOnly =
false);
61 ListOfFiles PutStreamToFiles(
const unsigned char* theBuffer,
62 const long theBufferSize,
bool theNamesOnly =
false);
64 std::string GetTmpDir();
65 std::string GetDirFromPath(
const std::string& thePath);