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