66 |
count++; |
count++; |
67 |
} |
} |
68 |
|
|
69 |
|
void LSCPResultSet::Add(String Label, const char* pValue) { |
70 |
|
Add(Label, String(pValue)); |
71 |
|
} |
72 |
|
|
73 |
void LSCPResultSet::Add(int Value) { |
void LSCPResultSet::Add(int Value) { |
74 |
Add(ToString(Value)); |
Add(ToString(Value)); |
75 |
} |
} |
79 |
} |
} |
80 |
|
|
81 |
void LSCPResultSet::Add(String Label, float Value) { |
void LSCPResultSet::Add(String Label, float Value) { |
82 |
std::stringstream ss; //fixme: had issues with template and float?! |
char s[1024]; |
83 |
ss << Value; |
snprintf(s, 1023, "%.3f", Value); |
84 |
Add(Label, ss.str()); |
Add(Label, String(s)); |
85 |
} |
} |
86 |
|
|
87 |
void LSCPResultSet::Add(String Label, bool Value) { |
void LSCPResultSet::Add(String Label, bool Value) { |