GL Studio C++ Runtime API
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

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
~DNCString ( )

Dtor

Member Function Documentation

bool IsValid ( void  ) const
inline

Determine if the string is valid

Returns
true if valid else false
operator const char * ( void  ) const
inline

Get the string buffer (const)

Returns
string buffer (const) else NULL

Member Data Documentation

VPFUtil::WarningBool _isValid
protected

true if string is valid else false

char* _str
protected

allocated string buffer else NULL


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