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 ¶m) |
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 keyvaluepair<std::string,std::string> ParamType |
Definition at line 152 of file AppTools.H.
void apptools::DumpContents | ( | std::ostream & | Ostr, |
const ContainerType & | c, | ||
std::string | del = "\n" |
||
) |
Dump container contents.
Dumps the contents of the container to the specified std::ostream object.
Definition at line 117 of file AppTools.H.
Referenced by pcpp::report::CartesianSetup(), parallel_blockstructured::ComputeUniformRectangularMetrics(), application::ConfigureSimulation(), base< GridT, StateT >::CreateData(), comlinehandler::ErrorReport(), parallel_blockstructured::GenerateCoordinates(), simulation::report::Grid(), euler::util::InitializeAcousticPulse(), euler::util::InitializeDensityPulse(), Maxwell::util::InitializeGaussianPulse1DXDir(), viscid::util::InitializePoiseuille(), euler::util::InitializeProtoY4Test1(), pcpp::io::hdf5::LegacyFileInfo(), parallel_blockstructured::ParallelSetup(), pcpp::io::hdf5::ReadGrid(), base< GridT, StateT >::Report(), application::RunMaxwellSolver(), application::RunPlasCom2(), pcpp::report::SimFileInfo(), TestGrid_CartesianMetric(), TestGrid_CurvilinearMetric(), TestGrid_CurvilinearVGWavy(), TestGrid_PBS_IntegratedHalo(), TestGrid_RectilinearMetric(), TestHDF5GridIO(), TestMaxwellRHS(), TestPlasCom2Input(), and TestPlasCom2Output().
|
inline |
Definition at line 69 of file AppTools.H.
Referenced by operator>>().
|
inline |
Definition at line 54 of file AppTools.H.
Referenced by operator>>().
|
inline |
Simple GnuPlot plotter util.
Definition at line 18 of file AppTools.H.
Referenced by main().
|
inline |
File opener.
Definition at line 144 of file AppTools.H.
Referenced by main().
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().
std::ostream & operator<< | ( | std::ostream & | oSt, |
const parameters & | pv | ||
) |
Definition at line 353 of file AppTools.H.
References parameters::WriteToStream().
std::ostream& apptools::operator<< | ( | std::ostream & | Out, |
const comlinehandler & | cl | ||
) |
Definition at line 816 of file AppTools.H.
References comlinehandler::_arghelp, comlinehandler::_argname, comlinehandler::_args, comlinehandler::_description, comlinehandler::_help, and comlinehandler::_type.
std::istream & operator>> | ( | std::istream & | iSt, |
parameters & | pv | ||
) |
Definition at line 359 of file AppTools.H.
References parameters::ReadFromStream().
Referenced by parameters::~parameters().
std::istream& apptools::operator>> | ( | std::istream & | In, |
comlinehandler & | cl | ||
) |
Definition at line 744 of file AppTools.H.
References comlinehandler::_arghelp, comlinehandler::_argname, comlinehandler::_description, comlinehandler::_error_messages, comlinehandler::_help, comlinehandler::_type, GetContentUntil(), GetNextContent(), and x.
|
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().
|
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().