120 |
count = 1; |
count = 1; |
121 |
} |
} |
122 |
|
|
123 |
|
void LSCPResultSet::Add(String Label, const std::vector<float>& v) { |
124 |
|
std::stringstream ss; |
125 |
|
ss.imbue(std::locale::classic()); |
126 |
|
for (int i = 0; i < v.size(); i++) { |
127 |
|
if (!ss.str().empty()) ss << ","; |
128 |
|
ss << std::fixed << std::setprecision(3) << v[i]; |
129 |
|
} |
130 |
|
Add(Label, ss.str()); |
131 |
|
} |
132 |
|
|
133 |
//Generate an error result set from an exception. |
//Generate an error result set from an exception. |
134 |
//Per LSCP spec, error result is a sinle line in the following format: |
//Per LSCP spec, error result is a sinle line in the following format: |
135 |
//ERR:<CODE>:Message text\r\n |
//ERR:<CODE>:Message text\r\n |