33 #include <casacore/casa/aips.h> 34 #include <casacore/casa/BasicSL/String.h> Bool isValid() const
Check if pathname is valid.
Bool isStrictlyPosix() const
Check if pathname is valid according the POSIX standard.
Path()
Default constructor, the path is set to .
const String & absoluteName() const
Return the string which giving the absolute pathname.
Path & operator=(const Path &that)
Assignment, copy semantics.
String baseName() const
Return the basename of the path; this is only the name of the file.
static uInt getMaxNameSize()
Define the maximum number of bytes in a filename This definition does not use Posix values...
void getNextName(const String &inString, uInt &count) const
This function is used by expandName and absoluteName.
static uInt getMaxPathNameSize()
Define the maximum number of bytes in a pathname This definition does not use Posix values...
String itsExpandedPathName
uInt maxLength() const
Return the maximum length a path name can have.
String itsOriginalPathName
Strings to describe the pathname in three different ways.
const String & expandedName() const
Return a string giving the expanded pathname.
String expandName(const String &inString) const
This function is used by expandedName to replace the tilde and to expand the environment variables...
bool Bool
Define the standard types used by Casacore.
const String & originalName() const
Returns the string as given at construction.
String resolvedName() const
Return the realpath which is the absolute pathname with possible symlinks resolved.
String makeAbsoluteName(const String &inString) const
This function is used by absoluteName to make a name absolute, this means that the name is described ...
String dirName() const
Return the dirname of the path; this is the directory where the filename is found.
String itsAbsolutePathName
These variables are pointer to strings because the functions which use these variables are const func...
String: the storage and methods of handling collections of characters.
String removeDots(const String &inString) const
Remove .
static String stripDirectory(const String &name, const String &otherName)
Strip otherName from this name.
static String addDirectory(const String &name, const String &otherName)
If the name starts with .
this file contains all the compiler specific defines
uInt length() const
Return length of path name.
void append(const String &string)
Append a string to the path name.