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