MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / parse

Method parse

dds/InfoRepo/PersistenceUpdater.cpp:360–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360int
361PersistenceUpdater::parse(int argc, ACE_TCHAR *argv[])
362{
363 for (ssize_t count = 0; count < argc; count++) {
364 if (ACE_OS::strcasecmp(argv[count], ACE_TEXT("-file")) == 0) {
365 if ((count + 1) < argc) {
366 persistence_file_ = argv[count+1];
367 count++;
368 }
369
370 } else if (ACE_OS::strcasecmp(argv[count], ACE_TEXT("-reset")) == 0) {
371 if ((count + 1) < argc) {
372 int val = ACE_OS::atoi(argv[count+1]);
373 reset_ = true;
374
375 if (val == 0) {
376 reset_ = false;
377 }
378
379 count++;
380 }
381
382 } else {
383 ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t) PersistenceUpdater::parse: Unknown option %s\n")
384 , argv[count]));
385 return -1;
386 }
387 }
388
389 return 0;
390}
391
392int
393PersistenceUpdater::fini()

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected