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

Method create_next_dir

dds/DCPS/FileSystemStorage.cpp:628–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628Directory::Ptr Directory::create_next_dir()
629{
630 ACE_TString logical;
631
632 if (dirs_.empty()) {
633 logical = FSS_DEFAULT_DIR_NAME;
634
635 } else {
636 Map::iterator last = --dirs_.end();
637 logical = last->first;
638
639 if (!increment(logical)) {
640 throw std::runtime_error("out of range for create_next_dir");
641 }
642 }
643
644 return make_new_subdir(logical);
645}
646
647Directory::Ptr Directory::make_new_subdir(const ACE_TString& t_name)
648{

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