A Registry to store Alliance Cell metadatas. More...
Classes | |
| class | State |
| An entry to store the Cell State in the Catalog. More... | |
Public Member Functions | |
| Catalog () | |
| ~Catalog () | |
| State * | getState (const Name &name, bool add=false) |
| void | mergeState (const Name &name, const State &other) |
| bool | deleteState (const Name &name) |
| void | clear () |
| bool | loadFromFile (const string &path, Library *library) |
| map< Name, State * > * | getStates () |
A Registry to store Alliance Cell metadatas.
The Catalog is built from the various CATAL files from the library directories and enriched with the current state of Cell in the database.
|
inline |
A new, empty, Catalog. Normally, there should only be one Catalog, attribute of AllianceFramework.
| CRL::Catalog::~Catalog | ( | ) |
Free a Catalog object.
Returns: the State of the Cell named name. If add is set to true and the cell doesn't exist, an entry is created for it. Otherwise, NULL is returned.
| bool CRL::Catalog::deleteState | ( | const Name & | name | ) |
Returns: true if an entry has been indeed deleted.
Delete the State associated with Cell name.
| void CRL::Catalog::clear | ( | ) |
Completly empty the Catalog.
| bool CRL::Catalog::loadFromFile | ( | const string & | path, |
| Library * | library | ||
| ) |
| path | The path to the library catalog file. |
| library | The library for which we are loading a catalog. Returns: true if the catalog file has been found and successfully loaded. |
|
inline |
| Generated by doxygen 1.9.1 on Wed Nov 20 2024 | Return to top of page |
| Coriolis Core (CRL) | Copyright © 2008-2020 Sorbonne Universite, All rights reserved |