PlasCom2  1.0
XPACC Multi-physics simluation application
apptools Namespace Reference

Classes

class  comlinehandler
 Command line processing. More...
 
class  keyvaluepair
 Simple key-value pair. More...
 
class  parameters
 

Typedefs

typedef keyvaluepair< std::string, std::string > ParamType
 

Functions

int GNUPlot (const std::string &commands)
 Simple GnuPlot plotter util. More...
 
std::string GetNextContent (std::istream &In)
 
void GetContentUntil (std::istream &In, std::string ret, const std::string &etag)
 
const std::string stripdirs (const std::string &pname)
 Strip absolute path. More...
 
template<typename ContainerType >
void DumpContents (std::ostream &Ostr, const ContainerType &c, std::string del="\)
 Dump container contents. More...
 
void TokenizeString (std::vector< std::string > &tokens, const std::string &source)
 Tokenize string. More...
 
int OpenFile (std::ifstream &Inf, const std::string &filename)
 File opener. More...
 
std::ostream & operator<< (std::ostream &Ostr, const ParamType &param)
 
std::ostream & operator<< (std::ostream &oSt, const parameters &pv)
 
std::istream & operator>> (std::istream &iSt, parameters &pv)
 
std::istream & operator>> (std::istream &In, comlinehandler &cl)
 
std::ostream & operator<< (std::ostream &Out, const comlinehandler &cl)
 

Typedef Documentation

◆ ParamType

typedef keyvaluepair<std::string,std::string> ParamType

Definition at line 152 of file AppTools.H.

Function Documentation

◆ DumpContents()

◆ GetContentUntil()

void apptools::GetContentUntil ( std::istream &  In,
std::string  ret,
const std::string &  etag 
)
inline

Definition at line 69 of file AppTools.H.

Referenced by operator>>().

Here is the caller graph for this function:

◆ GetNextContent()

std::string apptools::GetNextContent ( std::istream &  In)
inline

Definition at line 54 of file AppTools.H.

Referenced by operator>>().

Here is the caller graph for this function:

◆ GNUPlot()

int apptools::GNUPlot ( const std::string &  commands)
inline

Simple GnuPlot plotter util.

Definition at line 18 of file AppTools.H.

Referenced by main().

Here is the caller graph for this function:

◆ OpenFile()

int apptools::OpenFile ( std::ifstream &  Inf,
const std::string &  filename 
)
inline

File opener.

Definition at line 144 of file AppTools.H.

Referenced by main().

Here is the caller graph for this function:

◆ operator<<() [1/3]

std::ostream & operator<< ( std::ostream &  Ostr,
const ParamType param 
)

Definition at line 366 of file AppTools.H.

References keyvaluepair< K, V >::Key(), and keyvaluepair< K, V >::Value().

Referenced by parameters::~parameters().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<<() [2/3]

std::ostream & operator<< ( std::ostream &  oSt,
const parameters pv 
)

Definition at line 353 of file AppTools.H.

References parameters::WriteToStream().

Here is the call graph for this function:

◆ operator<<() [3/3]

std::ostream& apptools::operator<< ( std::ostream &  Out,
const comlinehandler cl 
)

◆ operator>>() [1/2]

std::istream & operator>> ( std::istream &  iSt,
parameters pv 
)

Definition at line 359 of file AppTools.H.

References parameters::ReadFromStream().

Referenced by parameters::~parameters().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator>>() [2/2]

std::istream& apptools::operator>> ( std::istream &  In,
comlinehandler cl 
)

◆ stripdirs()

const std::string apptools::stripdirs ( const std::string &  pname)
inline

Strip absolute path.

Strips the absolute path to recover the base file name or the executable file name.

Definition at line 100 of file AppTools.H.

References x.

Referenced by comlinehandler::Record().

Here is the caller graph for this function:

◆ TokenizeString()

void apptools::TokenizeString ( std::vector< std::string > &  tokens,
const std::string &  source 
)
inline

Tokenize string.

Breaks source string up into a vector of space delimited tokens

Definition at line 132 of file AppTools.H.

Referenced by pcpp::io::hdf5::PlasCom2FileInfo(), and parameters::ReadFromStream().

Here is the caller graph for this function: