| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
#include <Config/vjConfigChunkDB.h> |
|---|
| 41 |
#include <Config/vjChunkFactory.h> |
|---|
| 42 |
#include <Config/vjParseUtil.h> |
|---|
| 43 |
#include <Kernel/vjDebug.h> |
|---|
| 44 |
#include <Config/vjConfigTokens.h> |
|---|
| 45 |
|
|---|
| 46 |
#include <sys/types.h> |
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
vjConfigChunkDB::vjConfigChunkDB (): chunks() { |
|---|
| 50 |
; |
|---|
| 51 |
} |
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 |
vjConfigChunkDB::~vjConfigChunkDB () { |
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
} |
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 |
vjConfigChunkDB::vjConfigChunkDB (vjConfigChunkDB& db): chunks() { |
|---|
| 64 |
*this = db; |
|---|
| 65 |
} |
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 |
vjConfigChunkDB& vjConfigChunkDB::operator = (vjConfigChunkDB& db) { |
|---|
| 70 |
unsigned int i; |
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 |
chunks.clear(); |
|---|
| 74 |
for (i = 0; i < db.chunks.size(); i++) { |
|---|
| 75 |
chunks.push_back (new vjConfigChunk(*(db.chunks[i]))); |
|---|
| 76 |
} |
|---|
| 77 |
return *this; |
|---|
| 78 |
} |
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 |
vjConfigChunk* vjConfigChunkDB::getChunk (const std::string& name) { |
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
for (unsigned int i = 0; i < chunks.size(); i++) { |
|---|
| 86 |
if (!vjstrcasecmp (name, chunks[i]->getProperty("name"))) |
|---|
| 87 |
return chunks[i]; |
|---|
| 88 |
} |
|---|
| 89 |
return NULL; |
|---|
| 90 |
} |
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 |
std::vector<vjConfigChunk*> vjConfigChunkDB::getChunks() { |
|---|
| 96 |
return chunks; |
|---|
| 97 |
} |
|---|
| 98 |
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 |
|
|---|
| 102 |
void vjConfigChunkDB::addChunks(std::vector<vjConfigChunk*> new_chunks) { |
|---|
| 103 |
|
|---|
| 104 |
|
|---|
| 105 |
for (unsigned int i = 0; i < new_chunks.size(); i++) |
|---|
| 106 |
addChunk (new vjConfigChunk (*new_chunks[i])); |
|---|
| 107 |
} |
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 |
void vjConfigChunkDB::addChunks(vjConfigChunkDB *db) { |
|---|
| 112 |
addChunks (db->chunks); |
|---|
| 113 |
} |
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 |
|
|---|
| 117 |
void vjConfigChunkDB::addChunk(vjConfigChunk* new_chunk) { |
|---|
| 118 |
removeNamed (new_chunk->getProperty("Name")); |
|---|
| 119 |
chunks.push_back (new_chunk); |
|---|
| 120 |
} |
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 |
|
|---|
| 129 |
|
|---|
| 130 |
std::vector<vjConfigChunk*>* vjConfigChunkDB::getMatching (const std::string& property, const std::string value) { |
|---|
| 131 |
std::vector<vjConfigChunk*>* v = new std::vector<vjConfigChunk*>; |
|---|
| 132 |
|
|---|
| 133 |
for (unsigned int i = 0; i < chunks.size(); i++) { |
|---|
| 134 |
if (!vjstrcasecmp (value, chunks[i]->getProperty(property))) |
|---|
| 135 |
v->push_back(chunks[i]); |
|---|
| 136 |
} |
|---|
| 137 |
return v; |
|---|
| 138 |
} |
|---|
| 139 |
|
|---|
| 140 |
std::vector<vjConfigChunk*>* vjConfigChunkDB::getMatching (const std::string& property, int value) { |
|---|
| 141 |
int c; |
|---|
| 142 |
std::vector<vjConfigChunk*>* v = new std::vector<vjConfigChunk*>; |
|---|
| 143 |
for (unsigned int i = 0; i < chunks.size(); i++) { |
|---|
| 144 |
c = chunks[i]->getProperty(property); |
|---|
| 145 |
if (c == value) |
|---|
| 146 |
v->push_back(chunks[i]); |
|---|
| 147 |
} |
|---|
| 148 |
return v; |
|---|
| 149 |
} |
|---|
| 150 |
|
|---|
| 151 |
|
|---|
| 152 |
std::vector<vjConfigChunk*>* vjConfigChunkDB::getMatching (const std::string& property, float value) { |
|---|
| 153 |
float c; |
|---|
| 154 |
std::vector<vjConfigChunk*>* v = new std::vector<vjConfigChunk*>; |
|---|
| 155 |
for (unsigned int i = 0; i < chunks.size(); i++) { |
|---|
| 156 |
c = chunks[i]->getProperty(property); |
|---|
| 157 |
if (c == value) |
|---|
| 158 |
v->push_back(chunks[i]); |
|---|
| 159 |
} |
|---|
| 160 |
return v; |
|---|
| 161 |
} |
|---|
| 162 |
|
|---|
| 163 |
|
|---|
| 164 |
|
|---|
| 165 |
bool vjConfigChunkDB::erase () { |
|---|
| 166 |
|
|---|
| 167 |
|
|---|
| 168 |
|
|---|
| 169 |
|
|---|
| 170 |
chunks.clear(); |
|---|
| 171 |
return true; |
|---|
| 172 |
} |
|---|
| 173 |
|
|---|
| 174 |
|
|---|
| 175 |
|
|---|
| 176 |
|
|---|
| 177 |
|
|---|
| 178 |
int vjConfigChunkDB::removeMatching (const std::string& property, int value) { |
|---|
| 179 |
int i = 0; |
|---|
| 180 |
int c; |
|---|
| 181 |
std::vector<vjConfigChunk*>::iterator cur_chunk = chunks.begin(); |
|---|
| 182 |
while (cur_chunk != chunks.end()) { |
|---|
| 183 |
c = (*cur_chunk)->getProperty(property); |
|---|
| 184 |
if (c == value) { |
|---|
| 185 |
|
|---|
| 186 |
cur_chunk = chunks.erase(cur_chunk); |
|---|
| 187 |
i++; |
|---|
| 188 |
} |
|---|
| 189 |
else |
|---|
| 190 |
cur_chunk++; |
|---|
| 191 |
} |
|---|
| 192 |
return i; |
|---|
| 193 |
} |
|---|
| 194 |
|
|---|
| 195 |
int vjConfigChunkDB::removeMatching (const std::string& property, float value) { |
|---|
| 196 |
int i = 0; |
|---|
| 197 |
float c; |
|---|
| 198 |
|
|---|
| 199 |
std::vector<vjConfigChunk*>::iterator cur_chunk = chunks.begin(); |
|---|
| 200 |
while (cur_chunk != chunks.end()) { |
|---|
| 201 |
c = (*cur_chunk)->getProperty(property); |
|---|
| 202 |
if (c == value) { |
|---|
| 203 |
|
|---|
| 204 |
cur_chunk = chunks.erase(cur_chunk); |
|---|
| 205 |
i++; |
|---|
| 206 |
} |
|---|
| 207 |
else |
|---|
| 208 |
cur_chunk++; |
|---|
| 209 |
} |
|---|
| 210 |
return i; |
|---|
| 211 |
} |
|---|
| 212 |
|
|---|
| 213 |
int vjConfigChunkDB::removeMatching (const std::string& property, const std::string& value) { |
|---|
| 214 |
|
|---|
| 215 |
int i = 0; |
|---|
| 216 |
std::vector<vjConfigChunk*>::iterator cur_chunk = chunks.begin(); |
|---|
| 217 |
while (cur_chunk != chunks.end()) { |
|---|
| 218 |
vjVarValue v = ((*cur_chunk)->getProperty(property)); |
|---|
| 219 |
if (((v.getType() == T_STRING) || (v.getType() == T_STRING)) |
|---|
| 220 |
&& (!vjstrcasecmp (value, (std::string)v))) { |
|---|
| 221 |
|
|---|
| 222 |
cur_chunk = chunks.erase(cur_chunk); |
|---|
| 223 |
i++; |
|---|
| 224 |
} |
|---|
| 225 |
else |
|---|
| 226 |
cur_chunk++; |
|---|
| 227 |
} |
|---|
| 228 |
|
|---|
| 229 |
return i; |
|---|
| 230 |
} |
|---|
| 231 |
|
|---|
| 232 |
|
|---|
| 233 |
|
|---|
| 234 |
|
|---|
| 235 |
|
|---|
| 236 |
|
|---|
| 237 |
|
|---|
| 238 |
|
|---|
| 239 |
|
|---|
| 240 |
|
|---|
| 241 |
|
|---|
| 242 |
|
|---|
| 243 |
int vjConfigChunkDB::dependencySort(vjConfigChunkDB* auxChunks) |
|---|
| 244 |
{ |
|---|
| 245 |
|
|---|
| 246 |
#ifdef VJ_DEBUG |
|---|
| 247 |
vjDEBUG_BEGIN(vjDBG_CONFIG,4) << "---- Dependencies -----------\n" << vjDEBUG_FLUSH; |
|---|
| 248 |
for (unsigned int i=0;i<chunks.size();i++) { |
|---|
| 249 |
vjDEBUG(vjDBG_CONFIG,4) << "Chunk:" << chunks[i]->getProperty("name") |
|---|
| 250 |
<< std::endl << "\tDepends on:\n" |
|---|
| 251 |
<< vjDEBUG_FLUSH; |
|---|
| 252 |
std::vector<std::string> deps = chunks[i]->getChunkPtrDependencies(); |
|---|
| 253 |
if (deps.size() > 0) { |
|---|
| 254 |
for (unsigned int j=0;j<deps.size();j++) |
|---|
| 255 |
vjDEBUG(vjDBG_CONFIG,4) << " " << j << ": " |
|---|
| 256 |
<< deps[j].c_str() << std::endl |
|---|
| 257 |
<< vjDEBUG_FLUSH; |
|---|
| 258 |
} else { |
|---|
| 259 |
vjDEBUG(vjDBG_CONFIG,4) << " Nothing.\n" << vjDEBUG_FLUSH; |
|---|
| 260 |
} |
|---|
| 261 |
} |
|---|
| 262 |
vjDEBUG_END(vjDBG_CONFIG,4) << "-----------------------------\n" << vjDEBUG_FLUSH; |
|---|
| 263 |
#endif |
|---|
| 264 |
|
|---|
| 265 |
|
|---|
| 266 |
|
|---|
| 267 |
|
|---|
| 268 |
|
|---|
| 269 |
|
|---|
| 270 |
|
|---|
| 271 |
|
|---|
| 272 |
|
|---|
| 273 |
std::vector<vjConfigChunk*> src_chunks = chunks; |
|---|
| 274 |
chunks = std::vector<vjConfigChunk*>(0); |
|---|
| 275 |
|
|---|
| 276 |
bool dep_pass(true); |
|---|
| 277 |
std::vector<std::string> deps; |
|---|
| 278 |
std::vector<vjConfigChunk*>::iterator cur_item = src_chunks.begin(); |
|---|
| 279 |
|
|---|
| 280 |
while (cur_item != src_chunks.end()) { |
|---|
| 281 |
vjDEBUG(vjDBG_CONFIG,4) << "Checking depencies for: " << (*cur_item)->getProperty("name") << "\n" << vjDEBUG_FLUSH; |
|---|
| 282 |
|
|---|
| 283 |
deps = (*cur_item)->getChunkPtrDependencies(); |
|---|
| 284 |
for (unsigned int dep_num=0;dep_num<deps.size();dep_num++) { |
|---|
| 285 |
bool dep_not_found = (getChunk(deps[dep_num]) == NULL); |
|---|
| 286 |
bool aux_dep_not_found = ((auxChunks == NULL) || |
|---|
| 287 |
(auxChunks->getChunk(deps[dep_num]) == NULL)); |
|---|
| 288 |
|
|---|
| 289 |
|
|---|
| 290 |
|
|---|
| 291 |
if ( dep_not_found && aux_dep_not_found ) |
|---|
| 292 |
dep_pass = false; |
|---|
| 293 |
} |
|---|
| 294 |
|
|---|
| 295 |
if (dep_pass) { |
|---|
| 296 |
addChunk(*cur_item); |
|---|
| 297 |
src_chunks.erase(cur_item); |
|---|
| 298 |
cur_item = src_chunks.begin(); |
|---|
| 299 |
} else |
|---|
| 300 |
cur_item++; |
|---|
| 301 |
|
|---|
| 302 |
dep_pass = true; |
|---|
| 303 |
} |
|---|
| 304 |
|
|---|
| 305 |
|
|---|
| 306 |
|
|---|
| 307 |
|
|---|
| 308 |
|
|---|
| 309 |
if (src_chunks.size() > 0) { |
|---|
| 310 |
|
|---|
| 311 |
for (unsigned int i=0;i<src_chunks.size();i++) { |
|---|
| 312 |
vjDEBUG(vjDBG_ERROR,0) << clrOutNORM(clrRED, "ERROR:") << " Dependency error: Chunk:" << src_chunks[i]->getProperty("name") |
|---|
| 313 |
<< "\tDepends on: \n" << vjDEBUG_FLUSH; |
|---|
| 314 |
std::vector<std::string> deps = src_chunks[i]->getChunkPtrDependencies(); |
|---|
| 315 |
if (deps.size() > 0) { |
|---|
| 316 |
for (unsigned int j=0;j<deps.size();j++) |
|---|
| 317 |
vjDEBUG(vjDBG_ERROR,0) << "\tdep " << j << ": " |
|---|
| 318 |
<< deps[j].c_str() << std::endl |
|---|
| 319 |
<< vjDEBUG_FLUSH; |
|---|
| 320 |
} else { |
|---|
| 321 |
vjDEBUG(vjDBG_ERROR,0) << "Nothing.\n" << vjDEBUG_FLUSH; |
|---|
| 322 |
} |
|---|
| 323 |
vjDEBUG(vjDBG_ERROR,0) << "Check for undefined devices that others depend upon.\n" << vjDEBUG_FLUSH; |
|---|
| 324 |
} |
|---|
| 325 |
chunks.insert(chunks.end(), src_chunks.begin(), src_chunks.end()); |
|---|
| 326 |
|
|---|
| 327 |
return -1; |
|---|
| 328 |
} else { |
|---|
| 329 |
|
|---|
| 330 |
#ifdef VJ_DEBUG |
|---|
| 331 |
|
|---|
| 332 |
vjDEBUG_BEGIN(vjDBG_CONFIG,4) << "---- After sort ----" << std::endl << vjDEBUG_FLUSH; |
|---|
| 333 |
for (unsigned int i=0;i<chunks.size();i++) { |
|---|
| 334 |
vjDEBUG(vjDBG_CONFIG,4) << "Chunk:" << chunks[i]->getProperty("name") << std::endl |
|---|
| 335 |
<< "\tDepends on:\n" << vjDEBUG_FLUSH; |
|---|
| 336 |
std::vector<std::string> deps = chunks[i]->getChunkPtrDependencies(); |
|---|
| 337 |
if (deps.size() > 0) { |
|---|
| 338 |
for (unsigned int j=0;j<deps.size();j++) |
|---|
| 339 |
vjDEBUG(vjDBG_CONFIG,4) << " " << j << ": " << deps[j].c_str() << std::endl << vjDEBUG_FLUSH; |
|---|
| 340 |
} else { |
|---|
| 341 |
vjDEBUG(vjDBG_CONFIG,4) << " Nothing.\n" << vjDEBUG_FLUSH; |
|---|
| 342 |
} |
|---|
| 343 |
} |
|---|
| 344 |
vjDEBUG_END(vjDBG_CONFIG,4) << "-----------------\n" << vjDEBUG_FLUSH; |
|---|
| 345 |
#endif |
|---|
| 346 |
|
|---|
| 347 |
return 0; |
|---|
| 348 |
} |
|---|
| 349 |
} |
|---|
| 350 |
|
|---|
| 351 |
|
|---|
| 352 |
|
|---|
| 353 |
|
|---|
| 354 |
|
|---|
| 355 |
std::ostream& operator << (std::ostream& out, vjConfigChunkDB& self) { |
|---|
| 356 |
for (unsigned int i = 0; i < self.chunks.size(); i++) { |
|---|
| 357 |
out << *(self.chunks[i]) << std::endl; |
|---|
| 358 |
} |
|---|
| 359 |
out << "End" << std::endl; |
|---|
| 360 |
return out; |
|---|
| 361 |
} |
|---|
| 362 |
|
|---|
| 363 |
|
|---|
| 364 |
|
|---|
| 365 |
std::istream& operator >> (std::istream& in, vjConfigChunkDB& self) { |
|---|
| 366 |
|
|---|
| 367 |
const int bufsize = 512; |
|---|
| 368 |
char str[bufsize]; |
|---|
| 369 |
vjConfigChunk *ch; |
|---|
| 370 |
|
|---|
| 371 |
do { |
|---|
| 372 |
if (!readString (in, str, bufsize)) |
|---|
| 373 |
break; |
|---|
| 374 |
if (!strcasecmp (str, end_TOKEN)) |
|---|
| 375 |
break; |
|---|
| 376 |
|
|---|
| 377 |
std::string newstr = str; |
|---|
| 378 |
ch = vjChunkFactory::instance()->createChunk (newstr); |
|---|
| 379 |
if (ch == NULL) { |
|---|
| 380 |
vjDEBUG(vjDBG_ERROR,0) << clrOutNORM(clrRED, "ERROR:") << " Unknown Chunk type: " << str << std::endl |
|---|
| 381 |
<< vjDEBUG_FLUSH; |
|---|
| 382 |
|
|---|
| 383 |
while (strcasecmp (str, end_TOKEN)) { |
|---|
| 384 |
if (0 == readString (in, str, bufsize)) |
|---|
| 385 |
break; |
|---|
| 386 |
|
|---|
| 387 |
} |
|---|
| 388 |
} |
|---|
| 389 |
else { |
|---|
| 390 |
in >> *ch; |
|---|
| 391 |
|
|---|
| 392 |
|
|---|
| 393 |
|
|---|
| 394 |
if (!vjstrcasecmp (ch->getType(), "vjIncludeFile")) { |
|---|
| 395 |
|
|---|
| 396 |
|
|---|
| 397 |
std::string s = ch->getProperty ("Name"); |
|---|
| 398 |
vjConfigChunkDB newdb; |
|---|
| 399 |
newdb.load (s, self.file_name); |
|---|
| 400 |
self.addChunks(&newdb); |
|---|
| 401 |
} |
|---|
| 402 |
else if (!vjstrcasecmp (ch->getType(), "vjIncludeDescFile")) { |
|---|
| 403 |
|
|---|
| 404 |
|
|---|
| 405 |
std::string s = ch->getProperty ("Name"); |
|---|
| 406 |
vjChunkDescDB newdb; |
|---|
| 407 |
newdb.load (s, self.file_name); |
|---|
| 408 |
vjChunkFactory::instance()->addDescs (&newdb); |
|---|
| 409 |
} |
|---|
| 410 |
else { |
|---|
| 411 |
|
|---|
| 412 |
self.addChunk(ch); |
|---|
| 413 |
} |
|---|
| 414 |
} |
|---|
| 415 |
} while (!in.eof()); |
|---|
| 416 |
|
|---|
| 417 |
vjDEBUG(vjDBG_CONFIG,3) << "vjConfigChunkDB::>> : Finished - " |
|---|
| 418 |
<< self.chunks.size() << " chunks read." |
|---|
| 419 |
<< std::endl << vjDEBUG_FLUSH; |
|---|
| 420 |
|
|---|
| 421 |
return in; |
|---|
| 422 |
} |
|---|
| 423 |
|
|---|
| 424 |
|
|---|
| 425 |
|
|---|
| 426 |
|
|---|
| 427 |
|
|---|
| 428 |
|
|---|
| 429 |
bool vjConfigChunkDB::load (const std::string& filename, const std::string& parentfile) { |
|---|
| 430 |
file_name = demangleFileName (filename, parentfile); |
|---|
| 431 |
|
|---|
| 432 |
std::ifstream in(file_name.c_str()); |
|---|
| 433 |
|
|---|
| 434 |
vjDEBUG(vjDBG_CONFIG,3) << "vjConfigChunkDB::load(): opening file " << file_name.c_str() << " -- " << vjDEBUG_FLUSH; |
|---|
| 435 |
|
|---|
| 436 |
|
|---|
| 437 |
if (!in) { |
|---|
| 438 |
vjDEBUG(vjDBG_ALL,0) << "\nvjConfigChunkDB::load(): Unable to open file '" |
|---|
| 439 |
<< file_name.c_str() << "'" << std::endl << vjDEBUG_FLUSH; |
|---|
| 440 |
return false; |
|---|
| 441 |
} |
|---|
| 442 |
vjDEBUG(vjDBG_CONFIG,5) << " succeeded.\n" << vjDEBUG_FLUSH; |
|---|
| 443 |
in >> *this; |
|---|
| 444 |
vjDEBUG(vjDBG_CONFIG,3) << " finished.. read " << chunks.size() << " chunks\n" |
|---|
| 445 |
<< vjDEBUG_FLUSH; |
|---|
| 446 |
return true; |
|---|
| 447 |
} |
|---|
| 448 |
|
|---|
| 449 |
|
|---|
| 450 |
|
|---|
| 451 |
bool vjConfigChunkDB::save (const std::string& fname) { |
|---|
| 452 |
|
|---|
| 453 |
std::ofstream out(fname.c_str()); |
|---|
| 454 |
if (!out) { |
|---|
| 455 |
vjDEBUG(vjDBG_ERROR,1) << clrOutNORM(clrRED, "ERROR:") << " vjConfigChunkDB::save() - Unable to open file '" |
|---|
| 456 |
<< fname.c_str() << "'\n" << vjDEBUG_FLUSH; |
|---|
| 457 |
return false; |
|---|
| 458 |
} |
|---|
| 459 |
out << *this; |
|---|
| 460 |
return true; |
|---|
| 461 |
} |
|---|
| 462 |
|
|---|
| 463 |
|
|---|
| 464 |
|
|---|
| 465 |
bool vjConfigChunkDB::isEmpty() { |
|---|
| 466 |
return (chunks.size() == 0); |
|---|
| 467 |
} |
|---|
| 468 |
|
|---|
| 469 |
|
|---|
| 470 |
|
|---|
| 471 |
void vjConfigChunkDB::removeAll() { |
|---|
| 472 |
|
|---|
| 473 |
erase(); |
|---|
| 474 |
} |
|---|
| 475 |
|
|---|
| 476 |
|
|---|
| 477 |
|
|---|
| 478 |
int vjConfigChunkDB::removeNamed (const std::string& name) { |
|---|
| 479 |
return removeMatching ("Name", name); |
|---|
| 480 |
} |
|---|
| 481 |
|
|---|