Public Member Functions | Static Public Member Functions

xl7::io::FullPath Class Reference

#include <FullPath.h>

List of all members.

Public Member Functions

 FullPath (void)
 ~FullPath (void)
 FullPath (const cl7::string_type &full_path)
 FullPath (const cl7::char_type *full_path)
 FullPath (const FullPath &rhs)
FullPathoperator= (const FullPath &rhs)
cl7::string_type GetPath () const
cl7::string_type GetFileName () const
unsigned GetSplitPos () const
bool Init (const cl7::string_type &full_path)
bool Init (const cl7::char_type *full_path)
bool operator== (const FullPath &rhs) const
bool operator!= (const FullPath &rhs) const
 operator const cl7::string_type & () const
 operator const cl7::char_type * () const

Static Public Member Functions

static unsigned GetSplitPos (const cl7::string_type &full_path)

Constructor & Destructor Documentation

xl7::io::FullPath::FullPath ( void   ) 

Default constructor.

xl7::io::FullPath::~FullPath ( void   ) 

Destructor.

xl7::io::FullPath::FullPath ( const cl7::string_type full_path  ) 

Explicit constructor.

xl7::io::FullPath::FullPath ( const cl7::char_type full_path  ) 

Explicit constructor.

xl7::io::FullPath::FullPath ( const FullPath rhs  ) 

Copy constructor.


Member Function Documentation

cl7::string_type xl7::io::FullPath::GetFileName (  )  const

Returns the file name.

cl7::string_type xl7::io::FullPath::GetPath (  )  const

Returns the path.

unsigned xl7::io::FullPath::GetSplitPos (  )  const [inline]

Returns the offset of the file name within the full path. The offset of the file name is equal to the length of the path.

unsigned xl7::io::FullPath::GetSplitPos ( const cl7::string_type full_path  )  [static]

Searches for the last occurrence of a backslash and returns the index within the given string. If there is no "last backslash", the function returns 0.

bool xl7::io::FullPath::Init ( const cl7::string_type full_path  ) 

Initializes the full path.

bool xl7::io::FullPath::Init ( const cl7::char_type full_path  ) 

Initializes the full path.

xl7::io::FullPath::operator const cl7::char_type * (  )  const [inline]

Converts the full path to a C-string.

xl7::io::FullPath::operator const cl7::string_type & (  )  const [inline]

Converts the full path to a string.

bool xl7::io::FullPath::operator!= ( const FullPath rhs  )  const [inline]
FullPath & xl7::io::FullPath::operator= ( const FullPath rhs  ) 

Copy assignment operator.

bool xl7::io::FullPath::operator== ( const FullPath rhs  )  const [inline]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines