OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
StringPair Class Reference

A StringPair has two strings, first() and second(). More...

Public Member Functions

 StringPair (const char *compstr)
 
 StringPair (const char *str1, const char *str2)
 
 StringPair (const StringPair &)
 
BufferStringfirst ()
 
const BufferStringfirst () const
 
const OD::StringgetCompString () const
 
const OD::StringgetCompString (bool withwhitespace) const
 
bool hasSecond () const
 
BufferStringsecond ()
 
const BufferStringsecond () const
 

Static Public Member Functions

static char separator ()
 

Protected Attributes

BufferString first_
 
BufferString second_
 

Detailed Description

A StringPair has two strings, first() and second().

The getCompString() function concatanates the two strings with the pipe character ('|') in between.

<>

Constructor & Destructor Documentation

◆ StringPair() [1/3]

StringPair::StringPair ( const char *  str1,
const char *  str2 
)
inline

◆ StringPair() [2/3]

StringPair::StringPair ( const StringPair )

◆ StringPair() [3/3]

StringPair::StringPair ( const char *  compstr)

Member Function Documentation

◆ first() [1/2]

BufferString& StringPair::first ( )
inline

◆ first() [2/2]

const BufferString& StringPair::first ( ) const
inline

◆ getCompString() [1/2]

const OD::String& StringPair::getCompString ( ) const

◆ getCompString() [2/2]

const OD::String& StringPair::getCompString ( bool  withwhitespace) const

◆ hasSecond()

bool StringPair::hasSecond ( ) const
inline

◆ second() [1/2]

BufferString& StringPair::second ( )
inline

◆ second() [2/2]

const BufferString& StringPair::second ( ) const
inline

◆ separator()

static char StringPair::separator ( )
inlinestatic

Member Data Documentation

◆ first_

BufferString StringPair::first_
protected

◆ second_

BufferString StringPair::second_
protected

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