Do not globally use namespace std.
This commit is contained in:
@@ -28,6 +28,16 @@
|
||||
#include <direct.h>
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class QtToolsWrapper;
|
||||
|
||||
|
||||
|
||||
+8
-18
@@ -21,41 +21,31 @@
|
||||
#define CONFIGFILE_H
|
||||
|
||||
#include "tinyxml.h"
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
#include <vector>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <string>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
||||
enum ConfigState { NONEXISTING, OLD };
|
||||
enum ConfigType { CONFIG_TYPE_INT, CONFIG_TYPE_STRING };
|
||||
|
||||
|
||||
class ConfigFile{
|
||||
public:
|
||||
ConfigFile(int, char **);
|
||||
ConfigFile(int, char **);
|
||||
|
||||
~ConfigFile();
|
||||
~ConfigFile();
|
||||
|
||||
void fillBuffer();
|
||||
|
||||
void updateConfig(ConfigState);
|
||||
|
||||
std::string readConfigString(std::string varName);
|
||||
void writeConfigString(std::string varName, std::string varCont);
|
||||
|
||||
void writeConfigString(std::string varName, std::string varCont);
|
||||
|
||||
int readConfigInt(std::string varName);
|
||||
void writeConfigInt(std::string varName, int varCont);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
@@ -68,8 +58,8 @@ private:
|
||||
std::string defaultValue;
|
||||
};
|
||||
|
||||
vector<ConfigInfo> configList;
|
||||
vector<ConfigInfo> configBufferList;
|
||||
std::vector<ConfigInfo> configList;
|
||||
std::vector<ConfigInfo> configBufferList;
|
||||
|
||||
std::string configFileName;
|
||||
std::string logDir;
|
||||
|
||||
Reference in New Issue
Block a user