|
Gaudi Framework, version v22r0 |
| Home | Generated: 9 Feb 2011 |
Implementation of the parsing function for atomic primitive types. More...
#include "GaudiKernel/Parsers.icpp"
Go to the source code of this file.
Namespaces | |
| namespace | Gaudi |
Helper functions to set/get the application return code. | |
| namespace | Gaudi::Parsers |
Functions | |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (char &result, const std::string &input) |
parse the char value | |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (unsigned char &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (signed char &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (short &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (unsigned short &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (int &result, const std::string &input) |
parse the int value | |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (unsigned int &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (long &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (unsigned long &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (long long &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (unsigned long long &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (bool &result, const std::string &input) |
parse the bool value | |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (float &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (double &result, const std::string &input) |
parse the double value | |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (long double &result, const std::string &input) |
| GAUDI_API StatusCode | Gaudi::Parsers::parse (std::string &result, const std::string &input) |
parse the std::string value | |
Implementation of the parsing function for atomic primitive types.
For adding new type you should have only grammar class which recognize this type. Then by combining this grammar with such already implemented grammars like VectorGrammar, MapGrammar, PairGrammar you can very simply implement container types which will work with your type.
If you want your type can be handled in property file - see ValueGrammar in JobOptionsSvc which lays in GaudiSvc.
Definition in file ParseAtomic.cpp.