use own namespace
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#include <vector>
|
||||
#include "data.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ebusd;
|
||||
|
||||
static bool error = false;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <iomanip>
|
||||
#include "device.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ebusd;
|
||||
|
||||
int main() {
|
||||
Device* device = Device::create("/dev/ttyUSB20", true, false, false);
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "filereader.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ebusd;
|
||||
|
||||
static bool error = false;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <map>
|
||||
#include "message.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ebusd;
|
||||
|
||||
void verify(bool expectFailMatch, string type, string input,
|
||||
bool match, string expectStr, string gotStr) {
|
||||
@@ -45,12 +45,14 @@ void verify(bool expectFailMatch, string type, string input,
|
||||
|
||||
DataFieldTemplates* templates = NULL;
|
||||
|
||||
namespace ebusd {
|
||||
DataFieldTemplates* getTemplates(const string filename) {
|
||||
if (filename == "") { // avoid compiler warning
|
||||
return templates;
|
||||
}
|
||||
return templates;
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
// message: [type],[circuit],name,[comment],[QQ[;QQ]*],[ZZ],[PBSB],[ID],fields...
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <string>
|
||||
#include "symbol.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ebusd;
|
||||
|
||||
static bool error = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user