use own namespace
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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_
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "tem.h"
|
||||
#include "data.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ebusd;
|
||||
|
||||
static bool error = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user