FEDEM Solver  R8.0
Source code of the dynamics solver
Public Member Functions | Private Member Functions | List of all members
FFaString Class Reference

Extension of the STL string class with some parsing methods. More...

#include <FFaStringExt.H>

Inheritance diagram for FFaString:
Inheritance graph
[legend]
Collaboration diagram for FFaString:
Collaboration graph
[legend]

Public Member Functions

 FFaString (const std::string &s)
 Copy constructor. More...
 
bool hasSubString (const char *) const
 Checks if the string contains the specified substring. More...
 
int getIntAfter (const char *) const
 Parses an integer after the specified substring. More...
 
double getDoubleAfter (const char *) const
 Parses a double after the specified substring. More...
 
int getIntsAfter (const char *, const int, int *) const
 Parses a list of integers after the specified substring. More...
 
int getDoublesAfter (const char *, const int, double *) const
 Parses a list of doubles after the specified substring. More...
 
std::string getTextAfter (const char *, const char *end=NULL) const
 Parses a text string after the specified substring. More...
 

Private Member Functions

size_t getPosAfterString (const char *) const
 Returns the position of the specified substring. More...
 

Detailed Description

Extension of the STL string class with some parsing methods.

This is mainly used for description-field command parsing.

Constructor & Destructor Documentation

◆ FFaString()

FFaString::FFaString ( const std::string &  s)
inline

Copy constructor.

Member Function Documentation

◆ getDoubleAfter()

double FFaString::getDoubleAfter ( const char *  s) const

Parses a double after the specified substring.

◆ getDoublesAfter()

int FFaString::getDoublesAfter ( const char *  s,
const int  n,
double *  v 
) const

Parses a list of doubles after the specified substring.

◆ getIntAfter()

int FFaString::getIntAfter ( const char *  s) const

Parses an integer after the specified substring.

◆ getIntsAfter()

int FFaString::getIntsAfter ( const char *  s,
const int  n,
int *  v 
) const

Parses a list of integers after the specified substring.

◆ getPosAfterString()

size_t FFaString::getPosAfterString ( const char *  s) const
private

Returns the position of the specified substring.

◆ getTextAfter()

std::string FFaString::getTextAfter ( const char *  s,
const char *  end = NULL 
) const

Parses a text string after the specified substring.

◆ hasSubString()

bool FFaString::hasSubString ( const char *  s) const

Checks if the string contains the specified substring.


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