Loading...
Searching...
No Matches
DataProviderTypeCache.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace DataProvider {
class DataProviderTypeCache : public Qore::Serializable {
public:
protected:
DataProviderTypeEntry root();
transient RWLock rwlock();
hash<string, DataProviderTypeEntry> tmap;
hash<string, DataProviderTypeEntry> trmap;
int size = 0;
public:
registerType(string path, AbstractDataProviderType type, bool locked = False, *bool set_rollback);
bool registerOrReplaceType(string path, AbstractDataProviderType type, *int id);
*AbstractDataProviderType removeType(string path);
*AbstractDataProviderType lookupTypeFromId(int id);
*DataProviderTypeEntry lookupTypeEntryFromId(int id);
AbstractDataProviderType lookupTypeFromIdEx(int id);
DataProviderTypeEntry lookupTypeEntryFromIdEx(int id);
*AbstractDataProviderType lookupTypeFromPath(string path);
*DataProviderTypeEntry lookupTypeEntryFromPath(string path);
AbstractDataProviderType lookupTypeFromPathEx(string path);
DataProviderTypeEntry lookupTypeEntryFromPathEx(string path);
int size();
bool empty();
DataProviderTypeEntry getRoot();
clear();
*list<hash<DataProviderTypeEntryInfo>> listRegisteredTypeEntries();
*list<string> listRegisteredTypes();
*list<string> listTypes();
*list<string> listParentTypes();
lockAll();
*AbstractDataProviderType getType(string path);
AbstractDataProviderType getTypeEx(string path);
*hash<DataProviderTypeEntryInfo> getTypeInfo(string path, *bool rec_children_only);
hash<DataProviderTypeEntryInfo> getTypeInfoEx(string path, *bool rec_children_only);
*AbstractDataProviderType getTypeImpl(string path, bool throw_exception, *code type_loader);
*hash<DataProviderTypeEntryInfo> getTypeInfoImpl(string path, bool throw_exception, *bool rec_children_only);
RWLock getLock();
protected:
static *AbstractDataProviderType getTypeFromFields(string path, AbstractDataProviderType type, list<string> type_path, bool throw_exception);
public:
protected:
deregisterType(string path);
public:
};
};
DataProvider::AbstractDataProviderType
describes a data type
Definition AbstractDataProviderType.qc.dox.h:139
DataProvider::DataProviderTypeCache
Data provider type cache class.
Definition DataProviderTypeCache.qc.dox.h:29
DataProvider::DataProviderTypeCache::getRoot
DataProviderTypeEntry getRoot()
Returns the root type entry.
DataProvider::DataProviderTypeCache::registerOrReplaceType
bool registerOrReplaceType(string path, AbstractDataProviderType type, *int id)
Register or replaces a data provider type in the cache.
DataProvider::DataProviderTypeCache::getTypeInfoEx
hash< DataProviderTypeEntryInfo > getTypeInfoEx(string path, *bool rec_children_only)
Returns the given data provider type or throws an exception if not present.
DataProvider::DataProviderTypeCache::lookupTypeEntryFromId
*DataProviderTypeEntry lookupTypeEntryFromId(int id)
Returns a type from its epheremal ID.
DataProvider::DataProviderTypeCache::lookupTypeFromPath
*AbstractDataProviderType lookupTypeFromPath(string path)
Returns a type from its path.
DataProvider::DataProviderTypeCache::size
int size
The size of the cache.
Definition DataProviderTypeCache.qc.dox.h:46
DataProvider::DataProviderTypeCache::clear
clear()
Clears the type hierarchy of all non-locked types.
DataProvider::DataProviderTypeCache::listTypes
*list< string > listTypes()
Returns a list of registered data provider type paths.
DataProvider::DataProviderTypeCache::trmap
hash< string, DataProviderTypeEntry > trmap
Map of path names to types.
Definition DataProviderTypeCache.qc.dox.h:43
DataProvider::DataProviderTypeCache::lockAll
lockAll()
Locks all types.
DataProvider::DataProviderTypeCache::listParentTypes
*list< string > listParentTypes()
Returns a list of registered data provider type paths where the types are "parent" types.
DataProvider::DataProviderTypeCache::registerType
registerType(string path, AbstractDataProviderType type, bool locked=False, *bool set_rollback)
Register a new data provider type in the cache.
DataProvider::DataProviderTypeCache::lookupTypeFromIdEx
AbstractDataProviderType lookupTypeFromIdEx(int id)
Returns a type from its epheremal ID; throws an exception if the ID is unknown.
DataProvider::DataProviderTypeCache::getType
*AbstractDataProviderType getType(string path)
Returns the given data provider type or nothing if not present.
DataProvider::DataProviderTypeCache::rwlock
transient RWLock rwlock()
Data provider type cache lock.
DataProvider::DataProviderTypeCache::empty
bool empty()
Returns True if the cache is empty, False if not.
DataProvider::DataProviderTypeCache::getTypeInfo
*hash< DataProviderTypeEntryInfo > getTypeInfo(string path, *bool rec_children_only)
Returns the given data provider type or nothing if not present.
DataProvider::DataProviderTypeCache::listRegisteredTypeEntries
*list< hash< DataProviderTypeEntryInfo > > listRegisteredTypeEntries()
Returns a list of information for all registered data provider type entries.
DataProvider::DataProviderTypeCache::getLock
RWLock getLock()
Returns the RWLock to allow for external serialization.
DataProvider::DataProviderTypeCache::lookupTypeEntryFromPath
*DataProviderTypeEntry lookupTypeEntryFromPath(string path)
Returns a type from its path.
DataProvider::DataProviderTypeCache::lookupTypeEntryFromIdEx
DataProviderTypeEntry lookupTypeEntryFromIdEx(int id)
Returns a type from its epheremal ID; throws an exception if the ID is unknown.
DataProvider::DataProviderTypeCache::size
int size()
Returns the number of types in the cache.
DataProvider::DataProviderTypeCache::deregisterType
deregisterType(string path)
Deregisters the type at the given path.
DataProvider::DataProviderTypeCache::lookupTypeEntryFromPathEx
DataProviderTypeEntry lookupTypeEntryFromPathEx(string path)
Returns a type from its path; throws an exception if the path is unknown.
DataProvider::DataProviderTypeCache::root
DataProviderTypeEntry root()
Data provider data type cache.
DataProvider::DataProviderTypeCache::listRegisteredTypes
*list< string > listRegisteredTypes()
Returns a list of registered data provider type paths.
DataProvider::DataProviderTypeCache::getTypeFromFields
static *AbstractDataProviderType getTypeFromFields(string path, AbstractDataProviderType type, list< string > type_path, bool throw_exception)
Returns the given data provider type and either throws an exception if not present or returns NOTHING...
DataProvider::DataProviderTypeCache::lookupTypeFromId
*AbstractDataProviderType lookupTypeFromId(int id)
Returns a type from its epheremal ID.
DataProvider::DataProviderTypeCache::tmap
hash< string, DataProviderTypeEntry > tmap
Map of epheremal type IDs to types.
Definition DataProviderTypeCache.qc.dox.h:40
DataProvider::DataProviderTypeCache::removeType
*AbstractDataProviderType removeType(string path)
Removes a type from the type cache.
DataProvider::DataProviderTypeCache::getTypeInfoImpl
*hash< DataProviderTypeEntryInfo > getTypeInfoImpl(string path, bool throw_exception, *bool rec_children_only)
Returns information for the given data provider type and either throws an exception if not present or...
DataProvider::DataProviderTypeCache::getTypeEx
AbstractDataProviderType getTypeEx(string path)
Returns the given data provider type or throws an exception if not present.
DataProvider::DataProviderTypeCache::lookupTypeFromPathEx
AbstractDataProviderType lookupTypeFromPathEx(string path)
Returns a type from its path; throws an exception if the path is unknown.
DataProvider::DataProviderTypeCache::getTypeImpl
*AbstractDataProviderType getTypeImpl(string path, bool throw_exception, *code type_loader)
Returns the given data provider type and either throws an exception if not present or returns NOTHING...
DataProvider::DataProviderTypeEntry
the DataProviderTypeEntry class
Definition DataProviderTypeEntry.qc.dox.h:67
DataProvider
Qore AbstractDataField class definition.
Definition AbstractDataField.qc.dox.h:27