40#ifndef INCLUDED_DISTI_FILE_PATH_CLASS_H
41#define INCLUDED_DISTI_FILE_PATH_CLASS_H
105#if defined( DISTI_HAS_RVAL_REFS )
110 *
this = std::move( other );
120 _path = std::move( other._path );
180 outstr << path.
Path();
Definition: disti_metadata.h:87
Definition: callback_caller_base.h:56
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:350
virtual std::istream & ReadValue(std::istream &instr) override
Definition: file_path_class.h:384
DistiAttributeCWDRelativePath(CallbackMethodCallerBase *callback, const AttributeName &name, FilePathClass *attribPtr, bool useEmptyTag=false)
Definition: file_path_class.h:359
DistiAttributeCWDRelativePath(CallbackMethodCallerBase *callback, const AttributeName &name, FilePathClass initialValue, bool useEmptyTag=false)
Definition: file_path_class.h:370
virtual std::ostream & WriteValue(std::ostream &outstr) override
Definition: file_path_class.h:375
Definition: file_path_class.h:246
static const char * GetEmptyTag()
Definition: file_path_class.h:287
DistiAttributeFilePathClass(const FilePathClass &basePath, CallbackMethodCallerBase *callback, const AttributeName &name, FilePathClass initialValue, bool useEmptyTag=false)
Definition: file_path_class.h:277
static const char _emptyTag[]
Backing storage for the string used to represent empty paths.
Definition: file_path_class.h:252
FilePathClass * _attribPtr
Pointer to the actual storage location.
Definition: file_path_class.h:248
DistiAttributeFilePathClass(const FilePathClass &basePath, CallbackMethodCallerBase *callback, const AttributeName &name, FilePathClass *attribPtr, bool useEmptyTag=false)
Definition: file_path_class.h:262
const FilePathClass & _basePath
Used for reading relative paths.
Definition: file_path_class.h:250
virtual std::istream & ReadValue(std::istream &instr) override
Definition: file_path_class.h:326
virtual DistiAttributeBase & operator=(const DistiAttributeBase &oldClass) override
Definition: file_path_class.h:289
bool _useEmptyTag
true to use _emptyTag when writing path with WriteValue() if path does not have a filename.
Definition: file_path_class.h:251
FilePathClass _localStoragePath
Only used by local storage constructor.
Definition: file_path_class.h:249
virtual std::ostream & WriteValue(std::ostream &outstr) override
Definition: file_path_class.h:305
Definition: file_path_class.h:63
static const std::string & InvalidPathChars()
void WriteAsAbsolutePath(bool value)
Definition: file_path_class.h:220
std::string _path
Definition: file_path_class.h:67
FilePathClass & operator=(const FilePathClass &other)
Definition: file_path_class.h:95
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:71
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:199
FilePathClass(const std::string &stringPath)
FilePathClass & operator=(FilePathClass &&other)
Definition: file_path_class.h:116
friend std::istream & operator>>(std::istream &instr, FilePathClass &path)
Definition: file_path_class.h:188
bool operator!=(const FilePathClass &path) const
Definition: file_path_class.h:172
FilePathClass(FilePathClass &&other)
Definition: file_path_class.h:108
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:146
bool WriteAsAbsolutePath()
Definition: file_path_class.h:223
FilePathClass(const FilePathClass &other)
Definition: file_path_class.h:87
FilePathClass(const char *stringPath)
std::string FileExtension() const
friend std::ostream & operator<<(std::ostream &outstr, const FilePathClass &path)
Definition: file_path_class.h:178
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:214
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:52
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
bool GetToEnd(std::istream &instr, std::string &result, bool decode)
Generally useful defines, macros, enumerations and function prototypes.