blob: b7f03291b4f6462571bee2d156b8602d18396620 [file] [log] [blame]
/*
* File: GlobalHelpers.h
* Author: 51isoft
*
* Created on 2014年1月14日, 上午12:17
*/
#ifndef GLOBALHELPERS_H
#define GLOBALHELPERS_H
#include <string.h>
#include <stdio.h>
#include <string>
#include <vector>
#include <istream>
#include <sstream>
#include <fstream>
using namespace std;
#include "Logger.h"
#include "Config.h"
#include "Exception.h"
string loadAllFromFile(string);
string intToString(int);
int stringToInt(string);
string trim(string);
const string currentDateTime();
const string currentDate();
vector<string> split(const string &, char, bool);
vector<string> split(const string &, char);
#define CONFIG Config::Getinstance()
#define LOG Logger::Getinstance()->log
#define LOGGER Logger::Getinstance()
#endif /* GLOBALHELPERS_H */