use own namespace

This commit is contained in:
john30
2017-01-14 16:41:54 +01:00
parent 7bd9446f13
commit 774e01e937
43 changed files with 196 additions and 48 deletions
+3 -1
View File
@@ -19,9 +19,11 @@
#include "contrib.h"
#include "tem.h"
using namespace std;
namespace ebusd {
bool libebus_contrib_register() {
contrib_tem_register();
return true;
}
} // namespace ebusd
+3 -1
View File
@@ -24,7 +24,7 @@
* configure switch: --without-contrib
*/
using namespace std;
namespace ebusd {
/**
* Registration function that is called once during initialization.
@@ -32,4 +32,6 @@ using namespace std;
*/
bool libebus_contrib_register();
} // namespace ebusd
#endif // LIB_EBUS_CONTRIB_CONTRIB_H_
+7 -1
View File
@@ -29,7 +29,11 @@
#include <cstring>
#include "datatype.h"
using namespace std;
namespace ebusd {
using std::setfill;
using std::setw;
using std::dec;
void contrib_tem_register() {
DataTypeList::getInstance()->add(new TemParamDataType("TEM_P"));
@@ -135,3 +139,5 @@ result_t TemParamDataType::writeSymbols(istringstream& input,
}
return writeRawValue(value, offset, length, output, usedLength);
}
} // namespace ebusd
+3 -1
View File
@@ -34,7 +34,7 @@
* Contributed data types for TEM devices not part of regular releases.
*/
using namespace std;
namespace ebusd {
/**
* A special variant of @a NumberDataType for TEM/Dungs ParamID in master/slave
@@ -68,4 +68,6 @@ class TemParamDataType : public NumberDataType {
*/
void contrib_tem_register();
} // namespace ebusd
#endif // LIB_EBUS_CONTRIB_TEM_H_
+1 -1
View File
@@ -23,7 +23,7 @@
#include "tem.h"
#include "data.h"
using namespace std;
using namespace ebusd;
static bool error = false;