13 std::string
const& slhaFilename ) :
30 std::string returnString(
"" );
43 std::string indicesString(
"" );
53 if( NULL == blockPointer )
58 blockAsStrings( (*blockPointer)[ 0 ] );
69 bool indicesMatch(
false );
70 if( blockLine.
getSize() > (
int)(indicesVector.size()) )
73 for(
unsigned int whichIndex( 0 );
74 indicesVector.size() > whichIndex;
77 if( indicesVector[ whichIndex ]
87 for(
int whichReturnWord( indicesVector.size() );
88 blockLine.
getSize() > whichReturnWord;
91 returnString.append( blockLine[ whichReturnWord ] );
94 returnString.append(
" " );
static std::string const whitespaceAndNewlineChars
static std::vector< int > stringToIntVector(std::string stringToInterpret)
static std::string const whitespaceChars
static void substituteCharacterWith(std::string &stringToTransform, char const charToBeReplaced, char const charToBePutIn)
static std::string trimFromFront(std::string const &stringToTrim, std::string const &charsToTrim)
static std::string substringToFirst(std::string const &stringToParse, VectorlikeArray< std::string > const &delimitersOfSubstring, std::string *const remainderString=NULL)
static int stringToInt(std::string const &stringToInterpret)
static void parseByChar(std::string const &stringToParse, VectorlikeArray< std::string > &destinationArray, std::string const &divisionCharSet=whitespaceChars)
VectorlikeArray< StoredClass > & clearEntries()
int getNumberOfBodyLines() const
SLHA::SameNameBlockSet * getBlockAsStrings(std::string blockName)
bool readFile(std::string const &slhaFileName)
~SlhaSimplisticInterpreter()
SlhaSimplisticInterpreter(std::string const &slhaFilename)
std::string operator()(std::string blockNameAndIndices)