42 void Set(
const char *pszPath);
76 const int nSize =
static_cast<int>(paths.size());
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
BinStream & WriteString(const char *pszText)
Write a string with its length first.
void WriteEndian(const void *pData, int nBytes)
Write a value of 2, 4, 8, or 16 bytes, reversing its bytes unless the stream is little endian.
Path of a file, kept relative to a shared root directory.
Definition filepath.h:14
~FilePath() override=default
Destroy the object.
static void SetRoot(const char *pszRoot)
Set the root directory that relative paths resolve against.
static String sRoot
The root directory that relative paths resolve against, .
Definition filepath.h:63
void Set(const char *pszPath)
Set the path, resolving a relative path against the root directory.
const char * RelativePath() const
Report the path relative to the root directory.
String()
Construct an empty string.
Definition string.h:26
BinStream & operator<<(BinStream &stream, const std::vector< FilePath > &paths)
Write a vector of paths as its size followed by each path relative to the root directory.
Definition filepath.h:75