STK++ 1.0
STK_DManager_Util.h File Reference

In this file we define useful constant and method specific to the DManager project. More...

#include <list>
#include "../../STKernel/include/STK_Char.h"
#include "../../STKernel/include/STK_String_Util.h"
#include "../../STKernel/include/STK_Stream.h"
Include dependency graph for STK_DManager_Util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  STK
 

STK means the Statistical ToolKit.


namespace  STK::DManager

Functions

bool STK::DManager::checkStringToBoolean (String const &str)
 check if a string represent a boolean.
bool STK::DManager::StringToBoolean (String const &str)
 convert a string to a boolean.
void STK::DManager::removeCharBeforeAndAfter (String &str, Char c)
 remove all occurrences of the char c at the beginning and the end of the string str.
String STK::DManager::getField (istream &is, Char delimiter)
 Get the current field from the input stream.
template<class TYPE >
void STK::DManager::readList (String const &strBuffer, std::list< TYPE > &lst, Char sep=CHAR_SEP)
 Read a list of value of type TYPE stored in a line.
template<class TYPE >
void STK::DManager::writeList (ostream &os, std::list< TYPE > const &lst, Char sep=CHAR_SEP)
 Write a list of value of type TYPE stored in a line.

Variables

static const String STK::STRING_EMPTY = String()
 Representation of Not Available String value.
static const String STK::STRING_NL = _T("\n")
 Representation of a New Line String.
static const String STK::STRING_BLANK = _T(" ")
 Representation of a blank value.
static const String STK::STRING_VAR = _T("Var")
 default prefix of a variable name.
static const Char STK::CHAR_COMMENT = _T('#')
 The char indicating the beginning of a comment in an option file.
static const Char STK::CHAR_EQUAL = _T('=')
 The char indicating an equality in an option file.
static const Char STK::CHAR_BLANK = _T(' ')
 The blank space char.
static const Char STK::CHAR_TAB = _T('\t')
 The tab char.
static const Char STK::CHAR_SEP = _T(',')
 The default separator char in list of option.
static const Char STK::CHAR_OPENBRACKET = _T('[')
 The open bracket char.
static const Char STK::CHAR_CLOSEBRACKET = _T(']')
 The close bracket char.

Detailed Description

In this file we define useful constant and method specific to the DManager project.

Definition in file STK_DManager_Util.h.