OpendTect  6.6
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SeparString Class Reference
Inheritance diagram for SeparString:
[legend]

Public Member Functions

 SeparString (const char *escapedstr=nullptr, char separ=',')
 
 SeparString (const SeparString &ss)
 
SeparStringadd (const BufferStringSet &)
 Concatenation. More...
 
SeparStringadd (const char *unescapedstr)
 
SeparStringadd (const OD::String &ods)
 
SeparStringadd (const SeparString &)
 Concatenation. More...
 
template<class T >
SeparStringadd (T t)
 
const char * buf () const
 Output escaped. More...
 
FixedString from (int) const
 Output escaped. More...
 
char * getCStr ()
 Output escaped. More...
 
double getDValue (int) const
 
float getFValue (int) const
 
int64_t getI64Value (int) const
 
int getIValue (int) const
 
uint64_t getUI64Value (int) const
 
unsigned int getUIValue (int) const
 
bool getYN (int) const
 
int indexOf (const char *unescapedstr) const
 
bool isEmpty () const
 
 operator const char * () const
 
template<class T >
SeparStringoperator+= (const OD::String &ods)
 
template<class T >
SeparStringoperator+= (T t)
 
SeparStringoperator= (const char *escapedstr)
 
SeparStringoperator= (const SeparString &)
 
FixedString operator[] (int) const
 Output unescaped. More...
 
BufferStringrep ()
 Output escaped. More...
 
const OD::Stringrep () const
 Output escaped. More...
 
char sepChar () const
 
const char * sepStr () const
 
void setEmpty ()
 
void setSepChar (char)
 
int size () const
 
const char * unescapedStr () const
 

Private Member Functions

const char * findSeparator (const char *) const
 
const char * getEscaped (const char *unescapedstr, char sep) const
 
const char * getUnescaped (const char *escapedstartptr, const char *nextsep=nullptr) const
 
void initRep (const char *)
 
void initSep (char s)
 

Private Attributes

BufferString rep_
 
BufferString retstr_
 
char sep_ [2]
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ SeparString() [1/2]

SeparString::SeparString ( const char *  escapedstr = nullptr,
char  separ = ',' 
)
inline

◆ SeparString() [2/2]

SeparString::SeparString ( const SeparString ss)
inline

Member Function Documentation

◆ add() [1/5]

SeparString& SeparString::add ( const BufferStringSet )

Concatenation.

◆ add() [2/5]

SeparString& SeparString::add ( const char *  unescapedstr)

◆ add() [3/5]

SeparString& SeparString::add ( const OD::String ods)
inline

◆ add() [4/5]

SeparString& SeparString::add ( const SeparString )

Concatenation.

◆ add() [5/5]

template<class T >
SeparString& SeparString::add ( t)
inline

◆ buf()

const char* SeparString::buf ( ) const
inline

Output escaped.

◆ findSeparator()

const char* SeparString::findSeparator ( const char *  ) const
private

◆ from()

FixedString SeparString::from ( int  ) const

Output escaped.

◆ getCStr()

char* SeparString::getCStr ( )
inline

Output escaped.

◆ getDValue()

double SeparString::getDValue ( int  ) const

◆ getEscaped()

const char* SeparString::getEscaped ( const char *  unescapedstr,
char  sep 
) const
private

◆ getFValue()

float SeparString::getFValue ( int  ) const

◆ getI64Value()

int64_t SeparString::getI64Value ( int  ) const

◆ getIValue()

int SeparString::getIValue ( int  ) const

◆ getUI64Value()

uint64_t SeparString::getUI64Value ( int  ) const

◆ getUIValue()

unsigned int SeparString::getUIValue ( int  ) const

◆ getUnescaped()

const char* SeparString::getUnescaped ( const char *  escapedstartptr,
const char *  nextsep = nullptr 
) const
private

◆ getYN()

bool SeparString::getYN ( int  ) const

◆ indexOf()

int SeparString::indexOf ( const char *  unescapedstr) const

◆ initRep()

void SeparString::initRep ( const char *  )
private

◆ initSep()

void SeparString::initSep ( char  s)
inlineprivate

◆ isEmpty()

bool SeparString::isEmpty ( ) const
inline

◆ operator const char *()

SeparString::operator const char * ( ) const
inline

◆ operator+=() [1/2]

template<class T >
SeparString& SeparString::operator+= ( const OD::String ods)
inline

◆ operator+=() [2/2]

template<class T >
SeparString& SeparString::operator+= ( t)
inline

◆ operator=() [1/2]

SeparString& SeparString::operator= ( const char *  escapedstr)

◆ operator=() [2/2]

SeparString& SeparString::operator= ( const SeparString )

◆ operator[]()

FixedString SeparString::operator[] ( int  ) const

Output unescaped.

◆ rep() [1/2]

BufferString& SeparString::rep ( )
inline

Output escaped.

◆ rep() [2/2]

const OD::String& SeparString::rep ( ) const
inline

Output escaped.

◆ sepChar()

char SeparString::sepChar ( ) const
inline

◆ sepStr()

const char* SeparString::sepStr ( ) const
inline

◆ setEmpty()

void SeparString::setEmpty ( )
inline

◆ setSepChar()

void SeparString::setSepChar ( char  )

◆ size()

int SeparString::size ( ) const

◆ unescapedStr()

const char* SeparString::unescapedStr ( ) const
inline

Use with care! Distinction between separ-chars and escaped separ-chars will get lost.

Member Data Documentation

◆ rep_

BufferString SeparString::rep_
private

◆ retstr_

BufferString SeparString::retstr_
mutableprivate

◆ sep_

char SeparString::sep_[2]
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022