OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <FileSystemStorage.h>
Classes | |
class | Iterator |
Public Types | |
typedef RcHandle< Directory > | Ptr |
typedef Iterator< File > | FileIterator |
typedef Iterator< Directory > | DirectoryIterator |
Public Member Functions | |
FileIterator | begin_files () |
FileIterator | end_files () |
RcHandle< File > | get_file (const char *name) |
RcHandle< File > | create_next_file () |
assumes all files in this dir are created with this API More... | |
DirectoryIterator | begin_dirs () |
DirectoryIterator | end_dirs () |
Directory::Ptr | get_dir (const OPENDDS_VECTOR(OPENDDS_STRING)&path) |
Directory::Ptr | get_subdir (const char *name) |
Directory::Ptr | create_next_dir () |
assumes all subdirectories in this dir are created with this API More... | |
void | remove () |
OPENDDS_STRING | name () const |
Directory::Ptr | parent () const |
![]() | |
virtual | ~RcObject () |
virtual void | _add_ref () |
virtual void | _remove_ref () |
long | ref_count () const |
WeakObject * | _get_weak_object () const |
Static Public Member Functions | |
static Ptr | create (const char *root_path) |
Private Member Functions | |
ACE_TString | full_path (const ACE_TString &relative) const |
typedef | OPENDDS_MAP (ACE_TString, ACE_TString) Map |
Directory (const ACE_TString &root_path, const ACE_TString &logical, const Directory::Ptr &parent) | |
void | scan_dir (const ACE_TString &relative, DDS_Dirent &dir, unsigned int overflow_index) |
RcHandle< File > | make_new_file (const ACE_TString &t_name) |
void | removing (const ACE_TString &logical_child, bool file) |
Directory::Ptr | make_new_subdir (const ACE_TString &logical) |
ACE_TString | add_entry () |
OPENDDS_MAP (unsigned int, unsigned int) overflow_ | |
OPENDDS_MAP (ACE_TString, unsigned int) long_names_ | |
Private Attributes | |
Directory::Ptr | parent_ |
ACE_TString | physical_dirname_ |
ACE_TString | logical_dirname_ |
Map | files_ |
Map | dirs_ |
Friends | |
class | File |
template<typename T , typename U0 , typename U1 , typename U2 > | |
RcHandle< T > | OpenDDS::DCPS::make_rch (const U0 &, const U1 &, const U2 &) |
Additional Inherited Members | |
![]() | |
RcObject () | |
Definition at line 98 of file FileSystemStorage.h.
Definition at line 173 of file FileSystemStorage.h.
Definition at line 172 of file FileSystemStorage.h.
Definition at line 100 of file FileSystemStorage.h.
|
private |
Definition at line 759 of file FileSystemStorage.cpp.
References ACE_TEXT(), ACE_String_Base< char >::c_str(), DDS_Dirent, physical_dirname_, and scan_dir().
|
private |
Definition at line 693 of file FileSystemStorage.cpp.
References ACE_TEXT(), ACE_String_Base< char >::c_str(), OPENDDS_FILESYSTEMSTORAGE_MAX_FILES_PER_DIR, and OPENDDS_MAP.
Directory::DirectoryIterator OpenDDS::FileSystemStorage::Directory::begin_dirs | ( | ) |
Definition at line 593 of file FileSystemStorage.cpp.
References OpenDDS::DCPS::rchandle_from().
Directory::FileIterator OpenDDS::FileSystemStorage::Directory::begin_files | ( | ) |
Definition at line 527 of file FileSystemStorage.cpp.
References OpenDDS::DCPS::rchandle_from().
|
static |
If root_path is relative it is up to the application to make sure the current directory is not changed while this object or any of its "child" objects are still alive.
Definition at line 517 of file FileSystemStorage.cpp.
References ACE_TEXT(), and ACE_TEXT_CHAR_TO_TCHAR.
Directory::Ptr OpenDDS::FileSystemStorage::Directory::create_next_dir | ( | ) |
assumes all subdirectories in this dir are created with this API
Definition at line 628 of file FileSystemStorage.cpp.
References ACE_String_Base< char >::end().
File::Ptr OpenDDS::FileSystemStorage::Directory::create_next_file | ( | ) |
assumes all files in this dir are created with this API
Definition at line 574 of file FileSystemStorage.cpp.
References ACE_String_Base< char >::end().
Directory::DirectoryIterator OpenDDS::FileSystemStorage::Directory::end_dirs | ( | ) |
Definition at line 598 of file FileSystemStorage.cpp.
References OpenDDS::DCPS::rchandle_from().
Directory::FileIterator OpenDDS::FileSystemStorage::Directory::end_files | ( | ) |
Definition at line 532 of file FileSystemStorage.cpp.
References OpenDDS::DCPS::rchandle_from().
|
private |
Definition at line 522 of file FileSystemStorage.cpp.
Directory::Ptr OpenDDS::FileSystemStorage::Directory::get_dir | ( | const OPENDDS_VECTOR(OPENDDS_STRING)& | path | ) |
Definition at line 603 of file FileSystemStorage.cpp.
References OPENDDS_STRING, OPENDDS_VECTOR, and OpenDDS::DCPS::rchandle_from().
File::Ptr OpenDDS::FileSystemStorage::Directory::get_file | ( | const char * | name | ) |
Definition at line 537 of file FileSystemStorage.cpp.
References ACE_TEXT_CHAR_TO_TCHAR, and OpenDDS::DCPS::rchandle_from().
Directory::Ptr OpenDDS::FileSystemStorage::Directory::get_subdir | ( | const char * | name | ) |
Definition at line 615 of file FileSystemStorage.cpp.
References ACE_TEXT_CHAR_TO_TCHAR, and OpenDDS::DCPS::rchandle_from().
|
private |
Definition at line 554 of file FileSystemStorage.cpp.
References ACE_TEXT_ALWAYS_CHAR, OpenDDS::FileSystemStorage::b32h_encode(), ACE_String_Base< char >::c_str(), and OpenDDS::DCPS::rchandle_from().
|
private |
Definition at line 647 of file FileSystemStorage.cpp.
References ACE_TEXT(), OpenDDS::FileSystemStorage::b32h_encode(), ACE_String_Base< char >::c_str(), ACE_String_Base< char >::length(), OpenDDS::DCPS::rchandle_from(), ACE_OS::snprintf(), and ACE_String_Base< char >::substr().
OPENDDS_STRING OpenDDS::FileSystemStorage::Directory::name | ( | void | ) | const |
Definition at line 754 of file FileSystemStorage.cpp.
References ACE_TEXT_ALWAYS_CHAR.
|
private |
|
private |
|
private |
|
inline |
Definition at line 195 of file FileSystemStorage.h.
void OpenDDS::FileSystemStorage::Directory::remove | ( | void | ) |
Definition at line 742 of file FileSystemStorage.cpp.
References OpenDDS::DCPS::RcHandle< T >::is_nil(), OpenDDS::FileSystemStorage::File::parent_, and OpenDDS::DCPS::RcHandle< T >::reset().
|
private |
Definition at line 847 of file FileSystemStorage.cpp.
References ACE_TEXT(), ACE_OS::atoi(), ACE_String_Base< char >::c_str(), dirs_, files_, ACE_String_Base< char >::find(), and physical_dirname_.
|
private |
Definition at line 784 of file FileSystemStorage.cpp.
References ACE_TEXT(), ACE_TEXT_CHAR_TO_TCHAR, ACE_OS::atoi(), OpenDDS::FileSystemStorage::b32h_decode(), ACE_String_Base< char >::c_str(), DDS_DIRENT, DDS_Dirent, dirs_, files_, ACE_String_Base_Const::npos, OPENDDS_STRING, physical_dirname_, ACE_String_Base< char >::rfind(), ACE_OS::strlen(), and ACE_OS::strncmp().
Referenced by Directory().
|
friend |
Definition at line 200 of file FileSystemStorage.h.
|
friend |
|
private |
Definition at line 219 of file FileSystemStorage.h.
Referenced by removing(), and scan_dir().
|
private |
Definition at line 219 of file FileSystemStorage.h.
Referenced by removing(), and scan_dir().
|
private |
Definition at line 214 of file FileSystemStorage.h.
|
private |
Definition at line 213 of file FileSystemStorage.h.
|
private |
Definition at line 214 of file FileSystemStorage.h.
Referenced by Directory(), removing(), and scan_dir().