51 #include <boost/filesystem/operations.hpp> 52 #include <boost/filesystem/path.hpp> 69 typedef boost::filesystem::path
Path;
207 template <
typename Reflector>
210 std::string s = path.string();
217 template <
typename Reflector>
227 template<
typename SerializerTag>
232 namespace PropertyHints {
MIRA_BASE_EXPORT Path getAppDataDirectory(const std::string &appName="mira")
Returns the absolute path for application-specific data.
void reflectWrite(Reflector &r, Buffer< T, Allocator > &c)
Specialization of the non-intrusive reflect for Buffer.
Definition: Buffer.h:581
Typedefs for OS independent basic data types.
Type trait that indicates whether a type should be serialized "transparently", i.e.
Definition: IsTransparentSerializable.h:81
#define MIRA_SPLIT_REFLECT(Type)
Macro that inserts a reflect() method consisting of just a call to splitReflect() (splitting to refle...
Definition: SplitReflect.h:150
std::vector< Path > PathVector
Typedef for vector of Paths.
Definition: Path.h:75
PropertyHint file(const std::string &filters=std::string(), bool save=false)
Tells the property editor that the path is for a file, and that it should show a "File Open"/"File Sa...
Definition: Path.h:247
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
boost::filesystem::path Path
Typedef of a Path (shorter version for boost::filesystem::path)
Definition: Path.h:69
Provides property hints and attributes.
Provides type trait that indicates whether a type should be serialized "transparently".
Provides MIRA_SPLIT_REFLECT macros.
A property hint gives optional instructions to the property editor, i.e.
Definition: PropertyHint.h:82
MIRA_BASE_EXPORT Path getExecutableDirectory()
Get the path of the current running application binary.
std::string toString(const T &value, int precision=-1)
Converts any data type to string (the data type must support the stream << operator).
Definition: ToString.h:256
MIRA_BASE_EXPORT bool isRootOfPath(const Path &root, const Path &path)
The function takes two absolute paths and returns true if the given root path is part of the path giv...
void reflectRead(Reflector &r, Buffer< T, Allocator > &c)
Specialization of the non-intrusive reflect for Buffer.
Definition: Buffer.h:565
MIRA_BASE_EXPORT Path relativizePath(const Path &path, const Path &base)
Returns relative path from base to path.
MIRA_BASE_EXPORT Path resolvePath(const Path &path, bool makeAbsolute=true)
Resolves a path.
MIRA_BASE_EXPORT Path getHomeDirectory()
Get the absolute path of the current user's home directory.
MIRA_BASE_EXPORT Path getTempDirectory()
Get the absolute path of the temporary directory.
MIRA_BASE_EXPORT PathVector extractPaths(const std::string &env)
Extracts and resolves all paths contained in an environment variable.
MIRA_BASE_EXPORT Path normalizePath(const Path &path)
Normalizes a path: it resolves all ".." in a path.