| GlsMap Toolkit 1.10.1

Public Member Functions | Protected Attributes | List of all members
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

## ◆ DNCString()

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

  src | source string to copy
  trimTrailingWS | [optional, defaults to true] true to trim trailing whitespace when copying src else false

## ◆ ~DNCString()

DNCUtil::DNCString::~DNCString | ( |  | ) |

Dtor

## Member Function Documentation

## ◆ IsValid()

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

Determine if the string is valid

Returns
  true if valid else false

## ◆ operator const char *()

disti::DNCUtil::DNCString::operator const char * | ( | void |  | ) | const
| inline

Get the string buffer (const)

Returns
  string buffer (const) else NULL

## Member Data Documentation

## ◆ _isValid

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

true if string is valid else false

## ◆ _str

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

allocated string buffer else NULL

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

- dnc_util.h
- dnc_util.cpp