All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FileParsing::SimplestParsing Class Reference

#include <sch/File_Parsing/SimplestParsing.h>

Public Member Functions

 SimplestParsing (void)
 
virtual ~SimplestParsing (void)
 
std::stringstream & operator() ()
 returns the ifstream of the instance More...
 
bool find (const std::string &)
 looks for the string in the file (non optimized version, efficient with small files). The stream at the end of exectution is either just at the end of found string or at the end of the file if not found More...
 
bool checkIfNextString (const std::string &)
 Checks if the next string in the file is a given one, if it is, the stream will be at the end of the string if not, the stream will stay qt it's original position. More...
 
bool jumpSeparators ()
 Jumps the blanks, tabs and all non text separators. More...
 
void load (const char *filename)
 Opens a file and stores its content into a buffer. More...
 

Constructor & Destructor Documentation

◆ SimplestParsing()

FileParsing::SimplestParsing::SimplestParsing ( void  )

◆ ~SimplestParsing()

virtual FileParsing::SimplestParsing::~SimplestParsing ( void  )
virtual

Member Function Documentation

◆ checkIfNextString()

bool FileParsing::SimplestParsing::checkIfNextString ( const std::string &  )

Checks if the next string in the file is a given one, if it is, the stream will be at the end of the string if not, the stream will stay qt it's original position.

Returns
A boolean answer

◆ find()

bool FileParsing::SimplestParsing::find ( const std::string &  )

looks for the string in the file (non optimized version, efficient with small files). The stream at the end of exectution is either just at the end of found string or at the end of the file if not found

Returns
A boolean saying if it found it or not

◆ jumpSeparators()

bool FileParsing::SimplestParsing::jumpSeparators ( )

Jumps the blanks, tabs and all non text separators.

◆ load()

void FileParsing::SimplestParsing::load ( const char *  filename)

Opens a file and stores its content into a buffer.

◆ operator()()

std::stringstream& FileParsing::SimplestParsing::operator() ( )

returns the ifstream of the instance


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