39#ifndef INCLUDED_DISTI_FILE_PATH_CLASS_H
40#define INCLUDED_DISTI_FILE_PATH_CLASS_H
104#if defined( DISTI_HAS_RVAL_REFS )
109 *
this = std::move( other );
119 _path = std::move( other._path );
179 outstr << path.
Path();
348 return Demangle<FilePathClass>();
399 return Demangle<FilePathClass>();
Definition: disti_metadata.h:87
Definition: callback_caller_base.h:55
Definition: disti_metadata.h:220
virtual void CallCallback()
Calls callback CallType3 if it has been set.
virtual DistiAttributeBase & operator=(const DistiAttributeBase &oldClass)
Definition: file_path_class.h:354
std::istream & ReadValue(std::istream &instr) override
Definition: file_path_class.h:388
std::string Type() const override
Definition: file_path_class.h:397
std::ostream & WriteValue(std::ostream &outstr) override
Definition: file_path_class.h:379
DistiAttributeCWDRelativePath(CallbackMethodCallerBase *callback, const AttributeName &name, FilePathClass *attribPtr, bool useEmptyTag=false)
Definition: file_path_class.h:363
DistiAttributeCWDRelativePath(CallbackMethodCallerBase *callback, const AttributeName &name, FilePathClass initialValue, bool useEmptyTag=false)
Definition: file_path_class.h:374
Definition: file_path_class.h:245
static const char * GetEmptyTag()
Definition: file_path_class.h:286
DistiAttributeFilePathClass(const FilePathClass &basePath, CallbackMethodCallerBase *callback, const AttributeName &name, FilePathClass initialValue, bool useEmptyTag=false)
Definition: file_path_class.h:276
static const char _emptyTag[]
Backing storage for the string used to represent empty paths.
Definition: file_path_class.h:251
FilePathClass * _attribPtr
Pointer to the actual storage location.
Definition: file_path_class.h:247
std::istream & ReadValue(std::istream &instr) override
Definition: file_path_class.h:325
std::string Type() const override
Definition: file_path_class.h:346
std::ostream & WriteValue(std::ostream &outstr) override
Definition: file_path_class.h:304
DistiAttributeFilePathClass(const FilePathClass &basePath, CallbackMethodCallerBase *callback, const AttributeName &name, FilePathClass *attribPtr, bool useEmptyTag=false)
Definition: file_path_class.h:261
DistiAttributeBase & operator=(const DistiAttributeBase &oldClass) override
Definition: file_path_class.h:288
const FilePathClass & _basePath
Used for reading relative paths.
Definition: file_path_class.h:249
bool _useEmptyTag
true to use _emptyTag when writing path with WriteValue() if path does not have a filename.
Definition: file_path_class.h:250
FilePathClass _localStoragePath
Only used by local storage constructor.
Definition: file_path_class.h:248
Definition: file_path_class.h:62
static const std::string & InvalidPathChars()
void WriteAsAbsolutePath(bool value)
Definition: file_path_class.h:219
std::string _path
Definition: file_path_class.h:66
FilePathClass & operator=(const FilePathClass &other)
Definition: file_path_class.h:94
static bool StringIsRelativePath(const std::string &strPath)
std::string Directory() const
static bool StringIsAbsolutePath(const std::string &strPath)
std::string FileName() const
bool _writeAsAbsolutePath
Definition: file_path_class.h:70
bool operator==(const FilePathClass &path) const
void FileExtension(const std::string &ext)
std::string PathRelativeTo(const FilePathClass &basePath) const
static FilePathClass GetCWD()
Definition: file_path_class.h:198
FilePathClass(const std::string &stringPath)
FilePathClass & operator=(FilePathClass &&other)
Definition: file_path_class.h:115
friend std::istream & operator>>(std::istream &instr, FilePathClass &path)
Definition: file_path_class.h:187
bool operator!=(const FilePathClass &path) const
Definition: file_path_class.h:171
FilePathClass(FilePathClass &&other)
Definition: file_path_class.h:107
static bool StringIsValidPath(const std::string &strPath)
bool ReadPathString(const FilePathClass &basePath, const std::string &strPath)
void WritePathString(const FilePathClass &basePath, std::string *strPath)
const std::string & Path() const
Definition: file_path_class.h:145
bool WriteAsAbsolutePath()
Definition: file_path_class.h:222
FilePathClass(const FilePathClass &other)
Definition: file_path_class.h:86
FilePathClass(const char *stringPath)
std::string FileExtension() const
friend std::ostream & operator<<(std::ostream &outstr, const FilePathClass &path)
Definition: file_path_class.h:177
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_METHOD_OVERRIDE
Macro to wrap the override keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:221
#define DISTI_FUNC_NOEXCEPT
Macro to wrap the noexcept keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:239
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:50
Definition: bmpimage.h:46
bool GetToEnd(std::istream &instr, std::string &result, bool decode)
Generally useful defines, macros, enumerations and function prototypes.