Public Member Functions | |
TypeInfo ("repository") | |
repository (const word &name, const fileSystem &localPath, repository *owner=nullptr) | |
repository (const repository &)=delete | |
repository & | operator= (const repository &)=delete |
virtual | ~repository () |
word | name () const |
virtual fileSystem | localPath () const |
virtual fileSystem | path () const |
const repository * | owner () const |
repository * | owner () |
const repository & | thisRepository () const |
repository & | thisRepository () |
bool | addToRepository (repository *rep) |
add repository to this repository return false if the name already exists More... | |
bool | removeFromRepository (repository *rep) |
remove rep from the list of repositories More... | |
bool | addToRepository (IOobject *io) |
add IOobject to this repository More... | |
bool | removeFromRepository (IOobject *io) |
remove rep from the list of repositories More... | |
repository * | releaseOwner (bool fromOwner=false) |
virtual bool | isIncluded (const word &objName) const |
virtual bool | isExcluded (const word &objName) const |
bool | lookupObjectName (const word &nm) const |
word | lookupObjectTypeName (const word &nm) const |
bool | globalLookupObjectName (const word &nm, bool downward=false) const |
bool | lookupRepositoryName (const word &nm) const |
bool | lookupName (const word nm) const |
size_t | numObjects () const |
size_t | numRepositories () const |
virtual size_t | outFilePrecision () const |
template<typename T > | |
T & | lookupObject (const word &name) |
return a ref to the underlaying data in the object More... | |
template<typename T > | |
const T & | lookupObject (const word &name) const |
return a const ref to the underlaying data in the object More... | |
repository & | lookupRepository (const word &name) |
wordList | objectNames () const |
wordList | repositoryNames () const |
virtual bool | outFileBinary () const |
virtual bool | write (bool verbose=false) const |
template<typename Type1 > | |
pFlow::word | reportTypeError (IOobject &object) const |
Private Member Functions | |
template<typename Type1 > | |
word | reportTypeError (IOobject &object) const |
Static Private Member Functions | |
template<typename Type > | |
static bool | checkForObjectType (IOobject &object) |
Private Attributes | |
word | name_ |
fileSystem | localPath_ |
repository * | owner_ |
wordMap< IOobject * > | objects_ |
wordMap< repository * > | repositories_ |
Definition at line 34 of file repository.hpp.
repository | ( | const word & | name, |
const fileSystem & | localPath, | ||
repository * | owner = nullptr |
||
) |
Definition at line 25 of file repository.cpp.
References repository::addToRepository().
|
delete |
|
virtual |
Definition at line 42 of file repository.cpp.
References repository::objects_, repository::owner_, repository::removeFromRepository(), and repository::repositories_.
|
staticprivate |
Definition at line 34 of file repositoryTemplates.cpp.
TypeInfo | ( | "repository" | ) |
|
delete |
pFlow::word name | ( | ) | const |
Definition at line 60 of file repository.cpp.
Referenced by repository::addToRepository(), readFromTimeFolder::createUniformPointField_H(), IOobject::IOobject(), readFromTimeFolder::readPointField_D(), readFromTimeFolder::readPointField_H(), repository::removeFromRepository(), repository::reportTypeError(), and setFieldEntry::setPointFieldSelected().
|
virtual |
Reimplemented in Time.
Definition at line 65 of file repository.cpp.
|
virtual |
Definition at line 70 of file repository.cpp.
References fileSystem::path().
Referenced by pFlow::PFtoVTK::convertTimeFolderPointFields(), pFlow::PFtoVTK::convertTimeFolderPointFieldsSelected(), pFlow::TSFtoVTK::convertTimeFolderTriSurfaceFields(), interaction::create(), geometry::create(), and readFromTimeFolder::path().
pFlow::repository * owner | ( | ) | const |
Definition at line 82 of file repository.cpp.
Referenced by repository::globalLookupObjectName().
repository* owner | ( | ) |
pFlow::repository & thisRepository | ( | ) | const |
Definition at line 92 of file repository.cpp.
repository& thisRepository | ( | ) |
bool addToRepository | ( | repository * | rep | ) |
add repository to this repository return false if the name already exists
Definition at line 102 of file repository.cpp.
References repository::name(), and warningInFunction.
Referenced by IOobject::IOobject(), and repository::repository().
bool removeFromRepository | ( | repository * | rep | ) |
remove rep from the list of repositories
Definition at line 118 of file repository.cpp.
References repository::name().
Referenced by IOobject::releaseOwner(), repository::releaseOwner(), IOobject::~IOobject(), and repository::~repository().
bool addToRepository | ( | IOobject * | io | ) |
add IOobject to this repository
Definition at line 142 of file repository.cpp.
References objectFile::name(), and warningInFunction.
bool removeFromRepository | ( | IOobject * | io | ) |
remove rep from the list of repositories
Definition at line 124 of file repository.cpp.
References objectFile::name().
pFlow::repository * releaseOwner | ( | bool | fromOwner = false | ) |
Definition at line 131 of file repository.cpp.
References repository::removeFromRepository().
|
inlinevirtual |
Reimplemented in systemControl.
Definition at line 120 of file repository.hpp.
References repository::isIncluded(), and repository::owner_.
Referenced by repository::isIncluded().
|
inlinevirtual |
Reimplemented in systemControl.
Definition at line 128 of file repository.hpp.
References repository::isExcluded(), and repository::owner_.
Referenced by repository::isExcluded().
bool lookupObjectName | ( | const word & | nm | ) | const |
Definition at line 157 of file repository.cpp.
Referenced by readFromTimeFolder::checkForPointStructure(), pFlow::selectedFieldVals(), and setFieldEntry::setPointFieldSelected().
pFlow::word lookupObjectTypeName | ( | const word & | nm | ) | const |
Definition at line 163 of file repository.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
Referenced by pFlow::selectedFieldVals(), and setFieldEntry::setPointFieldSelected().
bool globalLookupObjectName | ( | const word & | nm, |
bool | downward = false |
||
) | const |
Definition at line 181 of file repository.cpp.
References repository::globalLookupObjectName(), and repository::owner().
Referenced by repository::globalLookupObjectName().
bool lookupRepositoryName | ( | const word & | nm | ) | const |
Definition at line 217 of file repository.cpp.
bool lookupName | ( | const word | nm | ) | const |
Definition at line 222 of file repository.cpp.
size_t numObjects | ( | ) | const |
Definition at line 229 of file repository.cpp.
size_t numRepositories | ( | ) | const |
Definition at line 234 of file repository.cpp.
|
inlinevirtual |
Reimplemented in systemControl.
Definition at line 160 of file repository.hpp.
References repository::outFilePrecision(), and repository::owner_.
Referenced by repository::outFilePrecision().
T & lookupObject | ( | const word & | name | ) |
return a ref to the underlaying data in the object
Definition at line 40 of file repositoryTemplates.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
Referenced by readFromTimeFolder::createUniformPointField_H(), readFromTimeFolder::readPointField_D(), readFromTimeFolder::readPointField_H(), pFlow::selectedFieldVals(), and setFieldEntry::setPointFieldSelected().
const T & lookupObject | ( | const word & | name | ) | const |
return a const ref to the underlaying data in the object
Definition at line 70 of file repositoryTemplates.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
pFlow::repository & lookupRepository | ( | const word & | name | ) |
Definition at line 239 of file repository.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
pFlow::wordList objectNames | ( | ) | const |
Definition at line 256 of file repository.cpp.
pFlow::wordList repositoryNames | ( | ) | const |
Definition at line 266 of file repository.cpp.
|
inlinevirtual |
Reimplemented in Time.
Definition at line 190 of file repository.hpp.
References repository::outFileBinary(), and repository::owner_.
Referenced by repository::outFileBinary().
|
virtual |
Reimplemented in Time.
Definition at line 278 of file repository.cpp.
References END_REPORT, pFlow::endl(), fatalErrorInFunction, and REPORT.
Referenced by Time::write().
pFlow::word reportTypeError | ( | IOobject & | object | ) | const |
Definition at line 23 of file repositoryTemplates.cpp.
References repository::name().
|
private |
Definition at line 39 of file repository.hpp.
|
private |
Definition at line 42 of file repository.hpp.
|
private |
Definition at line 45 of file repository.hpp.
Referenced by repository::isExcluded(), repository::isIncluded(), repository::outFileBinary(), repository::outFilePrecision(), and repository::~repository().
Definition at line 48 of file repository.hpp.
Referenced by repository::~repository().
|
private |
Definition at line 52 of file repository.hpp.
Referenced by repository::~repository().