CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
OD::Path Class Reference

#include <OdPathUtil.h>

Inheritance diagram for OD::Path:
OdArray< OdString >

Public Member Functions

 Path ()
 
 Path (const OdAnsiString &path)
 
 Path (const OdString &path)
 
 Path (const OdChar *path)
 
 Path (const char *path)
 
Path operator+ (const OdAnsiString &path) const
 
Path operator+ (const OdString &path) const
 
Path operator+ (const char *path) const
 
Path operator+ (const OdChar *path) const
 
Path operator+ (const Path &path) const
 
Path & operator+= (const OdAnsiString &path)
 
Path & operator+= (const OdString &path)
 
Path & operator+= (const char *path)
 
Path & operator+= (const OdChar *path)
 
Path & operator+= (const Path &path)
 
OdString asStr (bool asdir=false, char sepch='/') const
 
- Public Member Functions inherited from OdArray< OdString >
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
std::reverse_iterator< iterator > rbegin ()
 
std::reverse_iterator< const_iterator > rbegin () const
 
std::reverse_iterator< iterator > rend ()
 
std::reverse_iterator< const_iterator > rend () const
 
void insert (iterator before, const_iterator first, const_iterator afterLast)
 
iterator insert (iterator before, size_type numElements, const OdString &value)
 
iterator insert (iterator before, const OdString &value=OdString())
 
iterator insert (iterator before, OdString &&value)
 
void insertMove (iterator before, iterator first, iterator afterLast)
 
void resize (size_type logicalLength, const OdString &value)
 
void resize (size_type logicalLength)
 
size_type size () const
 
bool empty () const
 
size_type capacity () const
 
void reserve (size_type reserveLength)
 
void assign (const_iterator first, const_iterator afterLast)
 
void assignMove (iterator first, iterator afterLast)
 
iterator erase (iterator first, iterator afterLast)
 
iterator erase (iterator where)
 
void clear ()
 
void push_back (const OdString &value)
 
void push_back (OdString &&value)
 
bool contains (const ConstForPtrT &value, size_type start=0) const
 
size_type length () const
 
bool isEmpty () const
 
size_type logicalLength () const
 
size_type physicalLength () const
 
int growLength () const
 
const OdString * asArrayPtr () const
 
OdString * asArrayPtr ()
 
const OdString * getPtr () const
 
const OdString & operator[] (size_type index) const
 
OdString & operator[] (size_type index)
 
OdString & at (size_type arrayIndex)
 
const OdString & at (size_type arrayIndex) const
 
OdArray & setAt (size_type arrayIndex, const OdString &value)
 
const OdString & getAt (size_type arrayIndex) const
 
OdString & first ()
 
const OdString & first () const
 
OdString & last ()
 
const OdString & last () const
 
size_type append (const OdString &value)
 
size_type append (OdString &&value)
 
iterator append ()
 
OdArray & append (const OdArray &otherArray)
 
OdArray & append (OdArray &&otherArray)
 
OdArray & insertAtMove (size_type index, OdString &value)
 
size_type appendMove (OdString &value)
 
OdArray & appendMove (OdArray &otherArray)
 
OdArray & appendRep (const OdString &value, size_type nCount)
 
OdArray & appendList (const Args &... args)
 
OdArray & removeFirst ()
 
OdArray & removeLast ()
 
OdArray & setGrowLength (int growLength)
 
 OdArray (size_type physicalLength, int growLength=8)
 
 OdArray ()
 
 OdArray (const OdArray &source)
 
 OdArray (OdArray &&source)
 
 ~OdArray ()
 
OdArray & operator= (const OdArray &source)
 
OdArray & operator= (OdArray &&source)
 
bool operator== (const OdArray &array) const
 
bool operator!= (const OdArray &array) const
 
OdArray & setAll (const OdString &value)
 
OdArray & insertAt (size_type arrayIndex, const OdString &value)
 
OdArray & insertAt (size_type index, OdString &&val)
 
OdArray & removeAt (size_type arrayIndex)
 
OdArray & removeSubArray (size_type startIndex, size_type endIndex)
 
bool find (const ConstForPtrT &value, size_type &findIndex, size_type start=0) const
 
OdArray & setLogicalLength (size_type logLength)
 
OdArray & setPhysicalLength (size_type physLength)
 
OdArray & reverse ()
 
OdArray & swap (size_type firstIndex, size_type secondIndex)
 
void swap (OdArray &other)
 
bool remove (const OdString &value, size_type start=0)
 

Static Public Member Functions

static const char * Walk (const char *szPath, const char *delimeters="/\\")
 
- Static Public Member Functions inherited from OdArray< OdString >
static OdArray< OdString, A > create (OdString *sourceArray, int sourceLength)
 

Additional Inherited Members

- Public Types inherited from OdArray< OdString >
using size_type = typename A::size_type
 
using iterator = OdString *
 
using const_iterator = const OdString *
 
using value_type = OdString
 
using const_reference = const OdString &
 
using reference = OdString &
 
using ConstForPtrT = typename std::conditional< std::is_pointer< OdString >::value, typename std::add_const< typename std::remove_pointer< OdString >::type >::type *, OdString >::type
 

Detailed Description

Definition at line 36 of file OdPathUtil.h.

Constructor & Destructor Documentation

◆ Path() [1/5]

OD::Path::Path ( )
inline

Definition at line 44 of file OdPathUtil.h.

◆ Path() [2/5]

OD::Path::Path ( const OdAnsiString &  path)
inline

Definition at line 110 of file OdPathUtil.h.

◆ Path() [3/5]

OD::Path::Path ( const OdString &  path)
inline

Definition at line 109 of file OdPathUtil.h.

◆ Path() [4/5]

OD::Path::Path ( const OdChar *  path)
inline

Definition at line 107 of file OdPathUtil.h.

◆ Path() [5/5]

OD::Path::Path ( const char *  path)
inline

Definition at line 108 of file OdPathUtil.h.

Member Function Documentation

◆ asStr()

OdString OD::Path::asStr ( bool  asdir = false,
char  sepch = '/' 
) const
inline

Definition at line 126 of file OdPathUtil.h.

◆ operator+() [1/5]

Path OD::Path::operator+ ( const char *  path) const
inline

Definition at line 117 of file OdPathUtil.h.

◆ operator+() [2/5]

Path OD::Path::operator+ ( const OdAnsiString &  path) const
inline

Definition at line 115 of file OdPathUtil.h.

◆ operator+() [3/5]

Path OD::Path::operator+ ( const OdChar *  path) const
inline

Definition at line 118 of file OdPathUtil.h.

◆ operator+() [4/5]

Path OD::Path::operator+ ( const OdString &  path) const
inline

Definition at line 116 of file OdPathUtil.h.

◆ operator+() [5/5]

Path OD::Path::operator+ ( const Path &  path) const
inline

Definition at line 119 of file OdPathUtil.h.

◆ operator+=() [1/5]

Path & OD::Path::operator+= ( const char *  path)
inline

Definition at line 122 of file OdPathUtil.h.

◆ operator+=() [2/5]

Path & OD::Path::operator+= ( const OdAnsiString &  path)
inline

Definition at line 120 of file OdPathUtil.h.

◆ operator+=() [3/5]

Path & OD::Path::operator+= ( const OdChar *  path)
inline

Definition at line 123 of file OdPathUtil.h.

◆ operator+=() [4/5]

Path & OD::Path::operator+= ( const OdString &  path)
inline

Definition at line 121 of file OdPathUtil.h.

◆ operator+=() [5/5]

Path & OD::Path::operator+= ( const Path &  path)
inline

Definition at line 124 of file OdPathUtil.h.

◆ Walk()

const char * OD::Path::Walk ( const char *  szPath,
const char *  delimeters = "/\\" 
)
inlinestatic

Definition at line 76 of file OdPathUtil.h.


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