Commit 38bfdf30 authored by Alessio Netti's avatar Alessio Netti

Minor warning fixes

- Fixing a few warnings here and there in the tools subdirectory
parent 787db53b
......@@ -33,6 +33,7 @@
class UserAction
{
public:
virtual ~UserAction() {}
virtual void printHelp(int argc, char* argv[]) = 0;
virtual int executeCommand(int argc, char* argv[], int argvidx, const char* hostname) = 0;
};
......
......@@ -213,7 +213,7 @@ int main(int argc, char** argv)
for (it = sensors.begin(); it != sensors.end(); it++) {
std::cout << it->name << " " << it->topic << " " << it->publicName << std::endl;
sensorConfig.publishSensor(it->publicName.c_str(), it->topic.c_str());
}
} */
/* Disconnect */
delete connection;
......
......@@ -95,6 +95,8 @@ void DCDBQuery::genOutput(std::list<DCDB::SensorDataStoreReading> &results, quer
case DCDB_OP_INTEGRAL:
std::cout << ",Integral";
break;
default:
break;
}
if(it->second.unit != DCDB::Unit_None) {
std::cout << " (" << DCDB::UnitConv::toString(it->second.unit) << ")";
......@@ -161,6 +163,8 @@ void DCDBQuery::genOutput(std::list<DCDB::SensorDataStoreReading> &results, quer
std::cout << ",";
}
break;}
default:
break;
}
} else {
std::cout << ",";
......@@ -192,8 +196,8 @@ void DCDBQuery::doQuery(const char* hostname, std::list<std::string> sensors, DC
std::string sensorName;
std::string functName;
std::string modifierStr;
double scalingFactor = 1.0;
DCDB::Unit unit = DCDB::Unit_None;
//double scalingFactor = 1.0;
//DCDB::Unit unit = DCDB::Unit_None;
/* Retrieve sensor object first */
std::string str = *it;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment