MCPcopy Create free account
hub / github.com/astra-toolbox/astra-toolbox / getRequiredIntArray

Method getRequiredIntArray

src/Config.cpp:203–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201
202template<class T>
203bool ConfigReader<T>::getRequiredIntArray(const std::string &name, std::vector<int> &values)
204{
205 values.clear();
206 if (!cfg->has(name)) {
207 astra::CLogger::error(__FILE__, __LINE__, "Configuration error in %s: No %s tag specified.", objName, name.c_str());
208 return false;
209 }
210 markNodeParsed(name);
211
212 if (!cfg->getIntArray(name, values)) {
213 astra::CLogger::error(__FILE__, __LINE__, "Configuration error in %s: %s must be an integer array.", objName, name.c_str());
214 return false;
215 }
216 return true;
217}
218
219
220template<class T>

Callers 1

initializeMethod · 0.80

Calls 4

errorFunction · 0.85
getIntArrayMethod · 0.80
clearMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected