namespace 'libebus' removed.

This commit is contained in:
Roland Jax
2014-11-19 19:44:04 +01:00
parent 5b14d6dbec
commit a5605c40be
33 changed files with 10 additions and 184 deletions
-2
View File
@@ -25,8 +25,6 @@
#include <sstream>
#include <vector>
using namespace libebus;
// will be part of cfg csv class
void readCSV(std::istream& is, Commands& commands){
std::string line;
-3
View File
@@ -24,9 +24,6 @@
#include <sstream>
#include <vector>
using namespace libebus;
int main() {
std::string dir("test");
+4 -6
View File
@@ -21,8 +21,6 @@
#include <iostream>
#include <iomanip>
using namespace libebus;
int main ()
{
std::string checks[][4] = {
@@ -72,7 +70,7 @@ int main ()
result_t result = DataField::create(mstr[1], false, it, entries.end(), predefined, fields, nextPos);
if (result != RESULT_OK) {
std::cout << "create \"" << checks[i][0] << "\" failed: " << getResultCodeCStr(result) << std::endl;
std::cout << "create \"" << checks[i][0] << "\" failed: " << getResultCode(result) << std::endl;
continue;
}
if (fields.empty() == true) {
@@ -86,7 +84,7 @@ int main ()
std::ostringstream output;
result = field->read(mstr, sstr, output);
if (result != RESULT_OK) {
std::cout << "read \"" << checks[i][0] << "\" failed: " << getResultCodeCStr(result) << std::endl;
std::cout << "read \"" << checks[i][0] << "\" failed: " << getResultCode(result) << std::endl;
}
else {
std::string gotStr = output.str();
@@ -101,12 +99,12 @@ int main ()
SymbolString writeSstr = SymbolString(sstr.getDataStr().substr(0, 2), false);
if (result != RESULT_OK) {
std::cout << "create \"" << checks[i][0] << "\" failed: " << getResultCodeCStr(result) << std::endl;
std::cout << "create \"" << checks[i][0] << "\" failed: " << getResultCode(result) << std::endl;
return 1;
}
result = field->write(gotStr, writeMstr, writeSstr);
if (result != RESULT_OK) {
std::cout << "write \"" << checks[i][0] << "\" failed: " << getResultCodeCStr(result) << std::endl;
std::cout << "write \"" << checks[i][0] << "\" failed: " << getResultCode(result) << std::endl;
}
else {
if (mstr == writeMstr && sstr == writeSstr)
-4
View File
@@ -21,10 +21,6 @@
#include <iostream>
#include <iomanip>
using namespace libebus;
int main()
{
Decode* help_dec = NULL;
-4
View File
@@ -21,10 +21,6 @@
#include <iostream>
#include <iomanip>
using namespace libebus;
int main()
{
Encode* help_enc = NULL;
-2
View File
@@ -21,8 +21,6 @@
#include <iostream>
#include <iomanip>
using namespace libebus;
int main ()
{
std::string dev("/dev/ttyUSB20");
-2
View File
@@ -21,8 +21,6 @@
#include <iostream>
#include <iomanip>
using namespace libebus;
int main ()
{
SymbolString sstr = SymbolString("10feb5050427a915aa");