Last change
on this file since 8914 was
7714,
checked in by bensch, 18 years ago
|
orxonox/trunk: Reimplementation of the Executor started in orxonox.cc
|
File size:
825 bytes
|
Rev | Line | |
---|
[4838] | 1 | /*! |
---|
[5141] | 2 | * @file helper_functions.h |
---|
| 3 | * @brief Definition of some minor helper-functions |
---|
[3245] | 4 | */ |
---|
[1853] | 5 | |
---|
[5141] | 6 | #ifndef _HELPER_FUNCTIONS_H |
---|
| 7 | #define _HELPER_FUNCTIONS_H |
---|
[1853] | 8 | |
---|
[7221] | 9 | #include <string> |
---|
| 10 | |
---|
[4838] | 11 | // FORWARD DECLARATION |
---|
[3543] | 12 | |
---|
[5141] | 13 | /*********************** |
---|
| 14 | *** HELPER FUNCTIONS *** |
---|
| 15 | ***********************/ |
---|
[7221] | 16 | bool isBool(const std::string& BOOL, bool defaultValue); |
---|
| 17 | int isInt(const std::string& INT, int defaultValue); |
---|
| 18 | float isFloat(const std::string& FLOAT, float defaultValue); |
---|
| 19 | const char* isCString(const std::string& STRING, const char* defaultValue); |
---|
[7714] | 20 | const std::string& isString(const std::string& STRING, const std::string& defaultValue); |
---|
[3543] | 21 | |
---|
[7221] | 22 | |
---|
[7371] | 23 | int nocaseCmp(const std::string& s1, const std::string& s2); |
---|
| 24 | int nocaseCmp(const std::string& s1, const std::string& s2, unsigned int len); |
---|
[7221] | 25 | |
---|
| 26 | |
---|
[5141] | 27 | #endif /* _HELPER_FUNCTIONS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.