Parasol Planning Library (PPL)
Functions | Variables
IOUtils.cpp File Reference
#include "IOUtils.h"
#include <algorithm>
#include <cctype>
Include dependency graph for IOUtils.cpp:

Functions

void VDInit (string _filename)
 @TODO More...
 
void VDClose ()
 @TODO More...
 
void VDComment (string _s)
 @TODO More...
 
void VDClearAll ()
 @TODO More...
 
void VDClearLastTemp ()
 @TODO More...
 
void VDClearComments ()
 @TODO More...
 
bool FileExists (const string &_filename)
 
void GoToNext (istream &_is)
 
bool IsCommentLine (const char _c)
 
string GetPathName (const string &_filename)
 
string ReadFieldString (istream &_is, CountingStreamBuffer &_cbs, const string &_desc, bool _toUpper)
 
vector< string > GetTokens (string _s, string _delimiters)
 

Variables

ofstream * vdo = nullptr
 @TODO More...
 

Function Documentation

◆ FileExists()

bool FileExists ( const std::string &  _filename)

Determine whether a file exists.

Parameters
_filenameThe name of the file to check.
Returns
True if the named file exists.

◆ GetPathName()

string GetPathName ( const std::string &  _filename)

Get directory path from filename

Parameters
_filenameFilename
Returns
Directory

◆ GetTokens()

vector<string> GetTokens ( std::string  _s,
std::string  _delimiters 
)

Split string based on delimiter.

Parameters
_sThe string to split.
_delimitersThe delimiters to split on.
Returns
The set of tokens.

◆ GoToNext()

void GoToNext ( std::istream &  _is)

Discard all commented lines until the next uncommented line is found

Parameters
_isStream

◆ IsCommentLine()

bool IsCommentLine ( const char  _c)

Determines if character starts a comment ('#')

Parameters
_cCharacter in question
Returns
Comment or not, that is the question

◆ ReadFieldString()

string ReadFieldString ( std::istream &  _is,
CountingStreamBuffer _cbs,
const std::string &  _desc,
const bool  _toUpper = true 
)

Read string from stream

Parameters
_isStream
_cbsCounting stream buffer
_descString describing field
_toUpperTrue means convert string to all upper case
Returns
Data string

◆ VDClearAll()

void VDClearAll ( )

@TODO

◆ VDClearComments()

void VDClearComments ( )

@TODO

◆ VDClearLastTemp()

void VDClearLastTemp ( )

@TODO

◆ VDClose()

void VDClose ( )

@TODO

◆ VDComment()

void VDComment ( string  _s)

@TODO

◆ VDInit()

void VDInit ( string  _filename)

@TODO

Variable Documentation

◆ vdo

ofstream* vdo = nullptr

@TODO