Version: 9.16.0
YACS::ENGINE::CatalogLoader Class Referenceabstract

class for YACS catalog loader. More...

#include <Catalog.hxx>

Inheritance diagram for YACS::ENGINE::CatalogLoader:
Collaboration diagram for YACS::ENGINE::CatalogLoader:

Public Member Functions

 CatalogLoader ()
 
 CatalogLoader (const std::string &path)
 
virtual ~CatalogLoader ()
 
virtual CatalogLoadernewLoader (const std::string &path)=0
 
virtual void loadCata (Catalog *cata)=0
 
virtual void load (Catalog *cata, const std::string &path)
 

Protected Attributes

std::string _path
 

Detailed Description

class for YACS catalog loader.

Definition at line 62 of file Catalog.hxx.

Constructor & Destructor Documentation

◆ CatalogLoader() [1/2]

CatalogLoader::CatalogLoader ( )

Definition at line 61 of file Catalog.cxx.

61 :_path("proto")
62{
63}

◆ CatalogLoader() [2/2]

CatalogLoader::CatalogLoader ( const std::string &  path)

Definition at line 65 of file Catalog.cxx.

65 :_path(path)
66{
67}

◆ ~CatalogLoader()

CatalogLoader::~CatalogLoader ( )
virtual

Definition at line 69 of file Catalog.cxx.

70{
71 DEBTRACE("CatalogLoader::~CatalogLoader");
72}
#define DEBTRACE(msg)
Definition: YacsTrace.hxx:31

References DEBTRACE.

Member Function Documentation

◆ load()

void CatalogLoader::load ( Catalog cata,
const std::string &  path 
)
virtual

Definition at line 74 of file Catalog.cxx.

75{
76 CatalogLoader* CL=newLoader(path);
77 CL->loadCata(cata);
78 delete CL;
79}
class for YACS catalog loader.
Definition: Catalog.hxx:63
virtual void loadCata(Catalog *cata)=0
virtual CatalogLoader * newLoader(const std::string &path)=0

References loadCata(), and newLoader().

Referenced by YACS::ENGINE::Runtime::loadCatalog().

◆ loadCata()

virtual void YACS::ENGINE::CatalogLoader::loadCata ( Catalog cata)
pure virtual

◆ newLoader()

virtual CatalogLoader * YACS::ENGINE::CatalogLoader::newLoader ( const std::string &  path)
pure virtual

Member Data Documentation

◆ _path

std::string YACS::ENGINE::CatalogLoader::_path
protected

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