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

Method create_next_file

dds/DCPS/FileSystemStorage.cpp:574–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574File::Ptr Directory::create_next_file()
575{
576 ACE_TString logical;
577
578 if (files_.empty()) {
579 logical = FSS_DEFAULT_FILE_NAME;
580
581 } else {
582 Map::iterator last = --files_.end();
583 logical = last->first;
584
585 if (!increment(logical)) {
586 throw std::runtime_error("out of range for create_next_file");
587 }
588 }
589
590 return make_new_file(logical);
591}
592
593Directory::DirectoryIterator Directory::begin_dirs()
594{

Callers 2

insertMethod · 0.80
ACE_TMAINFunction · 0.80

Calls 3

incrementFunction · 0.85
emptyMethod · 0.45
endMethod · 0.45

Tested by 1

ACE_TMAINFunction · 0.64