TrueReality  v0.1.1912
FileUtils.cpp File Reference
#include <trUtil/FileUtils.h>
#include <trUtil/Exception.h>
#include <trUtil/PlatformMacros.h>
#include <trUtil/StringUtils.h>
#include <trUtil/Logging/Log.h>
#include <osg/Version>
#include <osg/Notify>
#include <osgDB/Archive>
#include <osgDB/FileNameUtils>
#include <osgDB/FileUtils>
#include <osgDB/ReadFile>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdexcept>
#include <algorithm>
#include <iostream>
#include <memory>
#include <cstdio>
#include <string>
#include <stack>
#include <sys/param.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <queue>
Include dependency graph for FileUtils.cpp:

Go to the source code of this file.

Classes

class  trUtil::IsFileSeparator
 
class  trUtil::ToLowerClass
 

Namespaces

 trUtil
 Namespace that holds various utility classes for the engine.
 

Macros

#define stat64   stat
 
#define S_ISREG(x)   (((x) & S_IFMT) == S_IFREG)
 
#define S_ISDIR(x)   (((x) & S_IFMT) == S_IFDIR)
 
#define MAX_PATH   1024
 

Functions

static std::string trUtil::GetPathRoot (const std::string &path)
 
static bool trUtil::iMakeDirectory (const std::string &path)
 
std::string trUtil::getFileExtensionIncludingDot (const std::string &fileName)
 

Macro Definition Documentation

◆ MAX_PATH

#define MAX_PATH   1024

◆ S_ISDIR

#define S_ISDIR (   x)    (((x) & S_IFMT) == S_IFDIR)

◆ S_ISREG

#define S_ISREG (   x)    (((x) & S_IFMT) == S_IFREG)

Definition at line 81 of file FileUtils.cpp.

◆ stat64

#define stat64   stat

Definition at line 76 of file FileUtils.cpp.

Referenced by trUtil::iMakeDirectory().