JC::SConfig::SConfigParser Class Reference

Class that contains helpful methods to work with text and files. More...

#include <sconfig.hpp>

List of all members.

Public Member Functions

 SConfigParser ()
 ~SConfigParser ()

Static Public Member Functions

static bool Parse (const string &content, Node &store)
 Converts text into a Node document.
static bool ParseFile (const string &filePath, Node &store)
 Converts file contents into a Node document.

Static Private Member Functions

static void Trim (string &s)
 Trims a string.


Detailed Description

Class that contains helpful methods to work with text and files.

Constructor & Destructor Documentation

JC::SConfig::SConfigParser::SConfigParser (  )  [inline]

JC::SConfig::SConfigParser::~SConfigParser (  )  [inline]


Member Function Documentation

bool SConfigParser::Parse ( const string &  content,
Node store 
) [static]

Converts text into a Node document.

Parameters:
content text to be parsed.
store destination Node to store the parsed result.
Returns:
True if success (store is filled), False otherwise.

bool SConfigParser::ParseFile ( const string &  filePath,
Node store 
) [static]

Converts file contents into a Node document.

Parameters:
filePath path to the text file to be parsed.
store destination Node to store the parsed result.
Returns:
True if success (file is opened and store is filled), False otherwise.

void SConfigParser::Trim ( string &  s  )  [static, private]

Trims a string.

Parameters:
s string to be trimmed.


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

Generated on Fri Apr 3 16:53:54 2009 for libsconfig by  doxygen 1.5.6