util::Location
holds a path specification for a filesystem.
???
Public Member Functions | |
Constructors | |
Location (const char *path) | |
create a location based on a path given as a C string | |
Location (void) | |
create a location based on the TMP directory (or current) | |
~Location (void) | |
destructor | |
Assignment operations | |
Location & | operator= (const Location &location) |
assign new complete filename | |
Properties | |
bool | isExistent (void) const |
determine whether a path exists on file system | |
bool | isAbsolute (void) const |
determine whether path has an absolute path specification | |
void | makeDirectory (void) const |
create a directory | |
Parts | |
const char * | getAsCString (void) const |
return full pathename as a C string pointer | |
operator const char * (void) const |
uima::util::Location::Location | ( | const char * | path | ) | [inline] |
create a location based on a path given as a C string
uima::util::Location::Location | ( | void | ) | [inline] |
create a location based on the TMP directory (or current)
References uima::util::EnvironmentVariableQueryOnly::getValue(), and uima::util::EnvironmentVariableQueryOnly::hasValue().
uima::util::Location::~Location | ( | void | ) | [inline] |
destructor
bool uima::util::Location::isExistent | ( | void | ) | const [inline] |
bool uima::util::Location::isAbsolute | ( | void | ) | const [inline] |
determine whether path has an absolute path specification
void uima::util::Location::makeDirectory | ( | void | ) | const [inline] |
create a directory
References isExistent(), UIMA_ERR_APR_FAILURE, UIMA_EXC_THROW_NEW, and uima::ErrorInfo::unrecoverable.
const char* uima::util::Location::getAsCString | ( | void | ) | const [inline] |
uima::util::Location::operator const char * | ( | void | ) | const [inline] |