VAPOR3 3.9.4
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VAPoR::IResourceManager< K, T > Class Template Referenceabstract

#include <IResourceManager.h>

Inheritance diagram for VAPoR::IResourceManager< K, T >:
Wasp::MyBase

Public Member Functions

virtual ~IResourceManager ()
 
bool HasResource (const K &key) const
 
bool HasResource (const T *resource) const
 
virtual int LoadResourceByKey (const K &key)=0
 
bool AddResource (const K &key, T *resource)
 
void DeleteResource (const K &key)
 
- Public Member Functions inherited from Wasp::MyBase
 MyBase ()
 
const string & getClassName () const
 

Protected Member Functions

T * GetResource (const K &key)
 
- Protected Member Functions inherited from Wasp::MyBase
void SetClassName (const string &name)
 

Protected Attributes

std::map< K, T * > _map
 

Additional Inherited Members

- Public Types inherited from Wasp::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Static Public Member Functions inherited from Wasp::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message.
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code.
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code.
 
static int GetErrCode ()
 Retrieve the current error code.
 
static void SetErrMsgCB (ErrMsgCB_T cb)
 
static ErrMsgCB_T GetErrMsgCB ()
 
static void SetErrMsgFilePtr (FILE *fp)
 
static const FILE * SetErrMsgFilePtr ()
 
static void SetDiagMsg (const char *format,...)
 Record a formatted diagnostic message.
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 
static bool GetEnableErrMsg ()
 
- Static Public Attributes inherited from Wasp::MyBase
static char * ErrMsg
 
static int ErrCode
 
static int ErrMsgSize
 
static FILE * ErrMsgFilePtr
 
static ErrMsgCB_T ErrMsgCB
 
static char * DiagMsg
 
static int DiagMsgSize
 
static FILE * DiagMsgFilePtr
 
static DiagMsgCB_T DiagMsgCB
 
static bool Enabled
 

Detailed Description

template<typename K, typename T>
class VAPoR::IResourceManager< K, T >

Definition at line 18 of file IResourceManager.h.

Constructor & Destructor Documentation

◆ ~IResourceManager()

template<typename K , typename T >
VAPoR::IResourceManager< K, T >::~IResourceManager
virtual

Definition at line 34 of file IResourceManager.h.

Member Function Documentation

◆ AddResource()

template<typename K , typename T >
bool VAPoR::IResourceManager< K, T >::AddResource ( const K &  key,
T *  resource 
)

Definition at line 61 of file IResourceManager.h.

References VAssert.

◆ DeleteResource()

template<typename K , typename T >
void VAPoR::IResourceManager< K, T >::DeleteResource ( const K &  key)

Definition at line 71 of file IResourceManager.h.

References VAssert.

◆ GetResource()

template<typename K , typename T >
T * VAPoR::IResourceManager< K, T >::GetResource ( const K &  key)
protected

Definition at line 39 of file IResourceManager.h.

◆ HasResource() [1/2]

template<typename K , typename T >
bool VAPoR::IResourceManager< K, T >::HasResource ( const K &  key) const

Definition at line 52 of file IResourceManager.h.

◆ HasResource() [2/2]

template<typename K , typename T >
bool VAPoR::IResourceManager< K, T >::HasResource ( const T *  resource) const

Definition at line 54 of file IResourceManager.h.

◆ LoadResourceByKey()

template<typename K , typename T >
virtual int VAPoR::IResourceManager< K, T >::LoadResourceByKey ( const K &  key)
pure virtual

Member Data Documentation

◆ _map

template<typename K , typename T >
std::map<K, T *> VAPoR::IResourceManager< K, T >::_map
protected

Definition at line 20 of file IResourceManager.h.


The documentation for this class was generated from the following file: