API  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
OpenSim::IO Class Reference

A class for performing input and output with OpenSim API. More...

Static Public Member Functions

static char * ConstructDateAndTimeStamp ()
 
static std::string FixSlashesInFilePath (const std::string &path)
 
static void SetScientific (bool aTrueFalse)
 
static bool GetScientific ()
 
static void SetGFormatForDoubleOutput (bool aTrueFalse)
 
static bool GetGFormatForDoubleOutput ()
 
static void SetDigitsPad (int aPad)
 
static int GetDigitsPad ()
 
static void SetPrecision (int aPlaces)
 
static int GetPrecision ()
 
static const char * GetDoubleOutputFormat ()
 
static void SetPrintOfflineDocuments (bool aTrueFalse)
 
static bool GetPrintOfflineDocuments ()
 
static std::string ReadToTokenLine (std::istream &aIS, const std::string &aToken)
 
static std::string ReadLine (std::istream &aIS)
 
static int ComputeNumberOfSteps (double aTI, double aTF, double aDT)
 
static std::string ReadCharacters (std::istream &aIS, int aNChar)
 
static FILE * OpenFile (const std::string &aFileName, const std::string &aMode)
 
static std::ifstream * OpenInputFile (const std::string &aFileName, std::ios_base::openmode mode=std::ios_base::in)
 
static std::ofstream * OpenOutputFile (const std::string &aFileName, std::ios_base::openmode mode=std::ios_base::out)
 
static int makeDir (const std::string &aDirName)
 
static int chDir (const std::string &aDirName)
 
static std::string getCwd ()
 
static std::string getParentDirectory (const std::string &fileName)
 
static std::string GetFileNameFromURI (const std::string &aURI)
 
static std::string formatText (const std::string &aComment, const std::string &leadingWhitespace, int width, const std::string &endlineTokenToInsert="\n")
 
static std::string GetSuffix (const std::string &aStr, int aLen)
 
static void RemoveSuffix (std::string &rStr, int aLen)
 
static std::string replaceSubstring (const std::string &aStr, const std::string &aFrom, const std::string &aTo)
 
static void TrimLeadingWhitespace (std::string &rStr)
 
static void TrimTrailingWhitespace (std::string &rStr)
 
static void TrimWhitespace (std::string &rStr)
 
static std::string Lowercase (const std::string &aStr)
 
static std::string Uppercase (const std::string &aStr)
 

Detailed Description

A class for performing input and output with OpenSim API.

Version
1.0
Author
Frank C. Anderson

Member Function Documentation

static int OpenSim::IO::chDir ( const std::string &  aDirName)
static
static int OpenSim::IO::ComputeNumberOfSteps ( double  aTI,
double  aTF,
double  aDT 
)
static
static char* OpenSim::IO::ConstructDateAndTimeStamp ( )
static
static std::string OpenSim::IO::FixSlashesInFilePath ( const std::string &  path)
static
static std::string OpenSim::IO::formatText ( const std::string &  aComment,
const std::string &  leadingWhitespace,
int  width,
const std::string &  endlineTokenToInsert = "\n" 
)
static
static std::string OpenSim::IO::getCwd ( )
static
static int OpenSim::IO::GetDigitsPad ( )
static
static const char* OpenSim::IO::GetDoubleOutputFormat ( )
static
static std::string OpenSim::IO::GetFileNameFromURI ( const std::string &  aURI)
static
static bool OpenSim::IO::GetGFormatForDoubleOutput ( )
static
static std::string OpenSim::IO::getParentDirectory ( const std::string &  fileName)
static
static int OpenSim::IO::GetPrecision ( )
static
static bool OpenSim::IO::GetPrintOfflineDocuments ( )
static
static bool OpenSim::IO::GetScientific ( )
static
static std::string OpenSim::IO::GetSuffix ( const std::string &  aStr,
int  aLen 
)
static
static std::string OpenSim::IO::Lowercase ( const std::string &  aStr)
static
static int OpenSim::IO::makeDir ( const std::string &  aDirName)
static
static FILE* OpenSim::IO::OpenFile ( const std::string &  aFileName,
const std::string &  aMode 
)
static
static std::ifstream* OpenSim::IO::OpenInputFile ( const std::string &  aFileName,
std::ios_base::openmode  mode = std::ios_base::in 
)
static
static std::ofstream* OpenSim::IO::OpenOutputFile ( const std::string &  aFileName,
std::ios_base::openmode  mode = std::ios_base::out 
)
static
static std::string OpenSim::IO::ReadCharacters ( std::istream &  aIS,
int  aNChar 
)
static
static std::string OpenSim::IO::ReadLine ( std::istream &  aIS)
static
static std::string OpenSim::IO::ReadToTokenLine ( std::istream &  aIS,
const std::string &  aToken 
)
static
static void OpenSim::IO::RemoveSuffix ( std::string &  rStr,
int  aLen 
)
static
static std::string OpenSim::IO::replaceSubstring ( const std::string &  aStr,
const std::string &  aFrom,
const std::string &  aTo 
)
static
static void OpenSim::IO::SetDigitsPad ( int  aPad)
static
static void OpenSim::IO::SetGFormatForDoubleOutput ( bool  aTrueFalse)
static
static void OpenSim::IO::SetPrecision ( int  aPlaces)
static
static void OpenSim::IO::SetPrintOfflineDocuments ( bool  aTrueFalse)
static
static void OpenSim::IO::SetScientific ( bool  aTrueFalse)
static
static void OpenSim::IO::TrimLeadingWhitespace ( std::string &  rStr)
static
static void OpenSim::IO::TrimTrailingWhitespace ( std::string &  rStr)
static
static void OpenSim::IO::TrimWhitespace ( std::string &  rStr)
inlinestatic
static std::string OpenSim::IO::Uppercase ( const std::string &  aStr)
static

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