GlsMap Toolkit  1.6.1
disti::DNCUtil::DNCString Class Reference

#include <dnc_util.h>

Public Member Functions

 DNCString (const char *const src, const bool trimTrailingWS=true)
 
 ~DNCString ()
 
bool IsValid (void) const
 
 operator const char * (void) const
 

Protected Attributes

VPFUtil::WarningBool _isValid
 
char * _str
 

Detailed Description

helper class for a fixed value string

Constructor & Destructor Documentation

DNCUtil::DNCString::DNCString ( const char *const  src,
const bool  trimTrailingWS = true 
)

Ctor - deep copy given string - NOTE: string will be initialized to "" if src == NULL

Parameters
srcsource string to copy
trimTrailingWS[optional, defaults to true] true to trim trailing whitespace when copying src else false
DNCUtil::DNCString::~DNCString ( )

Dtor

Member Function Documentation

bool disti::DNCUtil::DNCString::IsValid ( void  ) const
inline

Determine if the string is valid

Returns
true if valid else false
disti::DNCUtil::DNCString::operator const char * ( void  ) const
inline

Get the string buffer (const)

Returns
string buffer (const) else NULL

Member Data Documentation

VPFUtil::WarningBool disti::DNCUtil::DNCString::_isValid
protected

true if string is valid else false

char* disti::DNCUtil::DNCString::_str
protected

allocated string buffer else NULL


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