VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtPathList Class Reference

Utility class which contains a single path which is represented as a list of strings. More...

Public Member Functions

 DtPathList ()
 Default CTOR creates an empty path. More...
 
 DtPathList (const std::string &path, char separator=defaultSeparator())
 CTOR that turn a path into a path list. More...
 
 DtPathList (const std::vector< std::string > &path, char separator=defaultSeparator())
 Path which is initialized with a vector of strings. More...
 
 DtPathList (const DtPathList &orig)
 Copy CTOR. More...
 
DtPathListoperator= (const DtPathList &)
 Copy assignment operator. More...
 
DtPathListoperator= (const std::vector< std::string > &)
 Assign from vector of strings. More...
 
 ~DtPathList ()
 DTOR. More...
 
void setSeparator (char separator)
 
char separator () const
 
void pop ()
 Pops the last path element. More...
 
void push (const std::string &p)
 Adds element to end of path. More...
 
std::string path () const
 Returns path. More...
 
unsigned int size () const
 
const std::string & operator[] (int i) const
 
bool descendsFrom (const DtPathList &s) const
 
void remove (int i)
 
bool contains (const std::string &s) const
 

Static Public Member Functions

static char defaultSeparator ()
 

Protected Member Functions

std::vector< std::string > pathListFrom (const std::string &path)
 

Protected Attributes

std::vector< std::string > myPath
 
char mySeparator
 

Detailed Description

Utility class which contains a single path which is represented as a list of strings.

Constructor & Destructor Documentation

makVrv::DtPathList::DtPathList ( )

Default CTOR creates an empty path.

makVrv::DtPathList::DtPathList ( const std::string &  path,
char  separator = defaultSeparator() 
)

CTOR that turn a path into a path list.

makVrv::DtPathList::DtPathList ( const std::vector< std::string > &  path,
char  separator = defaultSeparator() 
)

Path which is initialized with a vector of strings.

makVrv::DtPathList::DtPathList ( const DtPathList orig)

Copy CTOR.

makVrv::DtPathList::~DtPathList ( )

DTOR.

Member Function Documentation

DtPathList& makVrv::DtPathList::operator= ( const DtPathList )

Copy assignment operator.

DtPathList& makVrv::DtPathList::operator= ( const std::vector< std::string > &  )

Assign from vector of strings.

void makVrv::DtPathList::setSeparator ( char  separator)
char makVrv::DtPathList::separator ( ) const
void makVrv::DtPathList::pop ( )

Pops the last path element.

void makVrv::DtPathList::push ( const std::string &  p)

Adds element to end of path.

std::string makVrv::DtPathList::path ( ) const

Returns path.

unsigned int makVrv::DtPathList::size ( ) const
const std::string& makVrv::DtPathList::operator[] ( int  i) const
bool makVrv::DtPathList::descendsFrom ( const DtPathList s) const
void makVrv::DtPathList::remove ( int  i)
bool makVrv::DtPathList::contains ( const std::string &  s) const
static char makVrv::DtPathList::defaultSeparator ( )
static
std::vector<std::string> makVrv::DtPathList::pathListFrom ( const std::string &  path)
protected

Member Data Documentation

std::vector<std::string> makVrv::DtPathList::myPath
protected
char makVrv::DtPathList::mySeparator
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)