#include <time.h>#include <libintl.h>#include <cstdarg>#include <cstdio>#include <fstream>#include <sstream>#include <string>#include <list>#include <map>Go to the source code of this file.
Namespaces | |
| namespace | storage |
Defines | |
| #define | y2debug(format,...) log_msg( 0, __FILE__, __LINE__, __FUNCTION__, NULL, format, ##__VA_ARGS__ ) |
| #define | y2milestone(format,...) log_msg( 1, __FILE__, __LINE__, __FUNCTION__, NULL, format, ##__VA_ARGS__ ) |
| #define | y2warning(format,...) log_msg( 2, __FILE__, __LINE__, __FUNCTION__, NULL, format, ##__VA_ARGS__ ) |
| #define | y2error(format,...) log_msg( 3, __FILE__, __LINE__, __FUNCTION__, NULL, format, ##__VA_ARGS__ ) |
| #define | y2deb(op) log_op( 0, __FILE__, __LINE__, __FUNCTION__, NULL, op ) |
| #define | y2mil(op) log_op( 1, __FILE__, __LINE__, __FUNCTION__, NULL, op ) |
| #define | y2war(op) log_op( 2, __FILE__, __LINE__, __FUNCTION__, NULL, op ) |
| #define | y2err(op) log_op( 3, __FILE__, __LINE__, __FUNCTION__, NULL, op ) |
| #define | log_op(level, file, line, function, add, op) |
| #define | IPC_PROJ_ID 7890 |
Functions | |
| bool | storage::searchFile (AsciiFile &File_Cr, string Pat_Cv, string &Line_Cr) |
| bool | storage::searchFile (AsciiFile &File_Cr, string Pat_Cv, string &Line_Cr, int &LineNr_ir) |
| void | storage::tolower (string &s) |
| void | storage::timeMark (const char *const Text_pcv, bool PrintDiff_bi) |
| void | storage::createPath (string Path_Cv) |
| bool | storage::checkNormalFile (string Path_Cv) |
| bool | storage::checkDir (string Path_Cv) |
| string | storage::dupDash (const string &s) |
| string | storage::extractNthWord (int Num_iv, string Line_Cv, bool GetRest_bi) |
| list< string > | storage::splitString (const string &s, const string &delChars, bool multipleDelim, bool skipEmpty, const string "es) |
| string | storage::mergeString (const std::list< string > &l, const string &del=" ") |
| std::map< string, string > | storage::makeMap (const std::list< string > &l, const string &delim="=", const string &removeSur=" \t\n") |
| void | storage::getFindMap (const char *path, std::map< string, string > &m, bool unique=true) |
| void | storage::getFindRevMap (const char *path, std::map< string, string > &m) |
| void | storage::removeLastIf (string &Text_Cr, char Char_cv) |
| string | storage::kbyteToHumanString (unsigned long long sizeK) |
| string | storage::normalizeDevice (const string &dev) |
| void | storage::normalizeDevice (string &dev) |
| string | storage::undevDevice (const string &dev) |
| void | storage::undevDevice (string &dev) |
| bool | storage::runningFromSystem () |
| void | storage::delay (int Microsec_iv) |
| unsigned | storage::getMajorDevices (const string &driver) |
| int | storage::createLogger (const string &lcomponent, const string &name, const string &logpath, const string &logfile) |
| void | storage::log_msg (unsigned level, const char *file, unsigned line, const char *func, const char *add_str, const char *format,...) |
| string | storage::sformat (const char *txt,...) |
| const char * | storage::_ (const char *msgid) |
| const char * | storage::_ (const char *msgid1, const char *msgid2, unsigned long int n) |
Variables | |
| bool | storage::system_cmd_testmode |
| const string | storage::app_ws |
| #define IPC_PROJ_ID 7890 |
| #define log_op | ( | level, | |||
| file, | |||||
| line, | |||||
| function, | |||||
| add, | |||||
| op | ) |
Value:
{ \
std::ostringstream __buf; \
__buf << op; \
log_msg( level, file, line, function, add, "%s", __buf.str().c_str() ); \
}
| #define y2deb | ( | op | ) | log_op( 0, __FILE__, __LINE__, __FUNCTION__, NULL, op ) |
| #define y2debug | ( | format, | |||
| ... | ) | log_msg( 0, __FILE__, __LINE__, __FUNCTION__, NULL, format, ##__VA_ARGS__ ) |
| #define y2err | ( | op | ) | log_op( 3, __FILE__, __LINE__, __FUNCTION__, NULL, op ) |
| #define y2error | ( | format, | |||
| ... | ) | log_msg( 3, __FILE__, __LINE__, __FUNCTION__, NULL, format, ##__VA_ARGS__ ) |
| #define y2mil | ( | op | ) | log_op( 1, __FILE__, __LINE__, __FUNCTION__, NULL, op ) |
| #define y2milestone | ( | format, | |||
| ... | ) | log_msg( 1, __FILE__, __LINE__, __FUNCTION__, NULL, format, ##__VA_ARGS__ ) |
| #define y2war | ( | op | ) | log_op( 2, __FILE__, __LINE__, __FUNCTION__, NULL, op ) |
| #define y2warning | ( | format, | |||
| ... | ) | log_msg( 2, __FILE__, __LINE__, __FUNCTION__, NULL, format, ##__VA_ARGS__ ) |
1.5.0