45 const KKStr& destFileName
70 FILE*
osFOPEN (
const char* fileName,
258 const KKStr& _fileName
263 const KKStr& _srcDir,
264 const KKStr& _destDir
283 void osSleep (
float numOfSecs);
330 const char* delimiters,
357 const char* delimiters,
388 const char* delimiters,
440 const char* whiteSpaceCharacters,
KKStr osGetFullPathOfApplication()
returns the name and path of the current running application.
char osGetDriveLetter(const KKStr &pathName)
Given a full drive with path and name return the drive letter specified.
kkuint64 osGetSystemTimeInMiliSecs()
Returns mili-secs that system (Windows = has been started, Linux time in epoch).
bool osDeleteFile(KKStr _fileName)
bool osValidFileName(const KKStr &_name)
KKB::KKStr osReadNextToken(FILE *in, const char *delimiters, bool &eof, bool &eol)
Read the next logical token from a file using characters in 'delimiters' to separate tokens...
KKB::KKStr osReadNextQuotedStr(FILE *in, const char *whiteSpaceCharacters, bool &eof)
Read the next Quoted String from the file.
KKStr osRemoveExtension(const KKStr &_fullFileName)
KKB::DateTime osGetLocalDateTime()
Returned the current local date and time.
KKB::KKStrPtr osReadRestOfLine(std::istream &in, bool &eof)
Extracts text up to and including the next end-of-line character and returns pointer to dynamical all...
bool osValidDirectory(const KKStr &_name)
kkint32 osGetNumberOfProcessors()
returns the number of CPU's or number of simultaneous threads that you can have.
KKStr osGetParentDirPath(KKStr dirPath)
Returns the Parent directory path to 'dirPath'.
KKStr osGetPathPartOfFile(KKStr fullFileName)
Get the path part of a full file name specification.
kkint64 osFTELL(FILE *f)
Calls the appropriate 64 bit function for operating system.
KKStr osCreateUniqueFileName(KKStr fileName)
Get a unique file name based off file spec 'fileName'.
KKStr osMakeFullFileName(const KKStr &_dirName, const KKStr &_fileName)
KKStrPtr osReadNextLine(FILE *in)
Read the next line from the file and return a c-String(NULL terminated).
KKB::KKStr osReadNextToken(std::istream &in, const char *delimiters, bool &eof, bool &eol)
Read the next logical token from a file using characters in 'delimiters' to separate tokens...
void osGetListOfFilesInDirectoryTree(const KKStr &rootDir, KKStr fileSpec, VectorKKStr &fileNames)
void osSkipRestOfLine(std::istream &in, bool &eof)
Skips rest of the characters in the current line in the input stream.
KKStrListPtr osGetListOfImageFiles(KKStr fileSpec)
KKStrListPtr osGetListOfFiles(const KKStr &fileSpec)
Returns a list of files that match the provided file specification.
double osGetKernalTimeUsed()
kkint32 osLocateLastSlashChar(const KKStr &fileSpec)
unsigned __int32 kkuint32
KKStr osReadNextToken(FILE *in, const char *delimiters, bool &eof)
Read the next logical token from a file using characters in 'delimiters' to separate tokens where ' '...
void osSleep(float numOfSecs)
KKStr osGetFileExtension(KKStr fullFileName)
bool osCopyFileBetweenDirectories(const KKStr &_fileName, const KKStr &_srcDir, const KKStr &_destDir)
double osGetUserTimeUsed()
KKStrListPtr osValidFileNameErrors(const KKStr &_name)
Returns list of errors in '_name' with respect to it being a valid file name for the O/S...
KKB::KKStr osAddSlash(const KKStr &fileSpec)
KKB::KKStr osReadRestOfLine2(FILE *in, bool &eof)
void osParseFileName(KKStr _fileName, KKStr &_dirPath, KKStr &_rootName, KKStr &_extension)
KKStr osLookForFile(const KKStr &fileName, const KKStr &srcDir)
Look for a specified file in a sub-directory structure.
void osParseFileSpec(KKStr fullFileName, KKStr &driveLetter, KKStr &path, KKStr &root, KKStr &extension)
void osChangeDir(const KKStr &dirName, bool &successful)
kkint32 osLocateFirstSlashChar(const KKStr &fileSpec)
VectorKKStr osSplitDirectoryPathIntoParts(const KKStr &path)
bool osValidDirectory(KKStrConstPtr _name)
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
KKB::KKStr osReadRestOfLine2(std::istream &in, bool &eof)
void osSleepMiliSecs(kkuint32 numMiliSecs)
KKStr osGetRootNameOfDirectory(KKStr fullDirName)
unsigned __int64 kkuint64
int osFSEEK(FILE *f, kkint64 offset, int origin)
KKStrPtr osGetEnvVariable(const KKStr &_varName)
T * osGrowAllocation(T *src, kkint32 origSize, kkint32 newSize)
bool osCreateDirectory(const KKStr &dirName)
KKB::KKStr osSubstituteInEnvironmentVariables(const KKStr &src)
Substitute in the value of the environment variables into 'src'.
double osGetSystemTimeUsed()
Returns the number of CPU seconds used by current process.
bool osFileExists(const KKStr &_fileName)
KKStrListPtr osGetListOfDirectories(KKStr fileSpec)
FILE * osFOPEN(const char *fileName, const char *mode)
KKStr osGetParentDirectoryOfDirPath(KKStr path)
KKStr osGetFileNamePartOfFile(KKStr fullFileName)
osGetFileNamePartOfFile, retrieves the file name part of the file spec.
bool osCopyFile(const KKStr &srcFileName, const KKStr &destFileName)
bool osIsBackGroundProcess()
bool osMoveFileBetweenDirectories(const KKStr &_fileName, const KKStr &_srcDir, const KKStr &_destDir)
KKB::DateTime osGetFileDateTime(const KKStr &fileName)
KKStr osGetCurrentDirectory()
KKStr osGetRootNameWithExtension(const KKStr &fullFileName)
void osSkipRestOfLine(FILE *in, bool &eof)
Skips rest of the characters in the current line in the file.
bool osCreateDirectoryPath(KKStr _pathName)
Will create the whole Directory Path not just the final part of the path.
KKStr osGetDirNameFromPath(KKStr dirPath)
Extracts the final sub-directory name of the fill directory specification.
bool osRenameFile(const KKStr &oldName, const KKStr &newName)
kkint64 osGetFileSize(const KKStr &fileName)
KKStr osGetErrorNoDesc(kkint32 errorNo)
KKB::KKStrPtr osReadRestOfLine(FILE *in, bool &eof)
KKStr osGetRootName(const KKStr &fullFileName)
void osDisplayWarning(KKStr _message)
void osAddLastSlash(KKStr &fileSpec)
Will add the appropriate Directory separator character to the end of fileSpec if one is not there alr...
void osRunAsABackGroundProcess()