|
Gaudi Framework, version v25r0 |
| Home | Generated: Mon Feb 17 2014 |
This class constitutes the core of the XML based FileCatalog API for POOL. More...
#include <XMLFileCatalog.h>


Public Member Functions | |
| XMLFileCatalog (CSTR url, IMessageSvc *m) | |
| Create a catalog file, initialization of XercesC. | |
| virtual | ~XMLFileCatalog () |
| Destructor,. | |
| virtual std::string | createFID () const |
| Catalog interface. | |
| virtual CSTR | connectInfo () const |
| Access to connect string. | |
| virtual void | init () |
| Parse the DOM tree of the XML catalog. | |
| virtual void | commit () |
| Save DOM catalog to file. | |
| virtual void | rollback () |
| Save DOM catalog to file. | |
| virtual bool | readOnly () const |
| Check if the catalog is read-only. | |
| virtual bool | dirty () const |
| Check if the catalog should be updated. | |
| virtual bool | existsPFN (CSTR pfn) const |
| Return the status of a physical file name. | |
| virtual std::string | lookupPFN (CSTR fid) const |
| Lookup file identifier by physical file name. | |
| virtual bool | existsLFN (CSTR lfn) const |
| Return the status of a logical file name. | |
| virtual std::string | lookupLFN (CSTR lfn) const |
| Lookup file identifier by logical file name. | |
| virtual bool | existsFID (CSTR fid) const |
| Return the status of a FileID. | |
| virtual void | getPFN (CSTR fid, Files &files) const |
| Dump all physical file names of the catalog and their attributes associate to the FileID. | |
| virtual void | getLFN (CSTR fid, Files &files) const |
| Dump all logical file names of the catalog associate to the FileID. | |
| virtual void | getFID (Strings &fids) const |
| Dump all file Identifiers. | |
| virtual void | deleteFID (CSTR FileID) const |
| Delete FileID Node from the catalog. | |
| virtual void | registerPFN (CSTR fid, CSTR pfn, CSTR ftype) const |
| Create a FileID and Node of the physical file name with all the attributes. | |
| virtual void | registerLFN (CSTR fid, CSTR lfn) const |
| Create a FileID and Node of the logical file name with all the attributes. | |
| virtual void | registerFID (CSTR fid) const |
| Create a FileID and Node. | |
| virtual void | getMetaData (CSTR fid, Attributes &attr) const |
| Dump all MetaData of the catalog for a given file ID. | |
| virtual std::string | getMetaDataItem (CSTR fid, CSTR name) const |
| Access metadata item. | |
| virtual void | setMetaData (CSTR fid, CSTR name, CSTR value) const |
| Insert/update metadata item. | |
| virtual void | dropMetaData (CSTR fid) const |
| Drop all metadata of one FID. | |
| virtual void | dropMetaData (CSTR fid, CSTR attr) const |
| Drop specified metadata item. | |
Protected Types | |
| typedef const std::string & | CSTR |
Private Member Functions | |
| xercesc::DOMDocument * | getDoc (bool throw_if_no_exists=true) const |
| std::string | getfile (bool create) |
| void | printError (CSTR msg, bool throw_exc=true) const |
| std::string | lookupFID (CSTR lfn) const |
| xercesc::DOMNode * | element (CSTR fid, bool print_err=true) const |
| xercesc::DOMNode * | child (xercesc::DOMNode *par, CSTR tag, CSTR attr="", CSTR val="") const |
| std::pair< xercesc::DOMElement *, xercesc::DOMElement * > | i_registerFID (CSTR fid) const |
Private Attributes | |
| bool | m_rdOnly |
| bool | m_update |
| xercesc::DOMDocument * | m_doc |
| xercesc::XercesDOMParser * | m_parser |
| xercesc::ErrorHandler * | m_errHdlr |
| std::string | m_file |
| IMessageSvc * | m_msgSvc |
Additional Inherited Members | |
Public Types inherited from implements1< IFileCatalog > | |
| typedef implements1 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces1 < IFileCatalog > | extend_interfaces_base |
| Typedef to the base of this class. | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. | |
This class constitutes the core of the XML based FileCatalog API for POOL.
It uses the DOM model and the external XercesC library for parsing.
Definition at line 25 of file XMLFileCatalog.h.
|
protected |
Definition at line 27 of file XMLFileCatalog.h.
| XMLFileCatalog::XMLFileCatalog | ( | CSTR | url, |
| IMessageSvc * | m | ||
| ) |
|
virtual |
|
virtual |
Save DOM catalog to file.
Definition at line 467 of file XMLFileCatalog.cpp.
|
inlinevirtual |
|
virtual |
Catalog interface.
Create file identifier using UUID mechanism.
Create file identifier using UUID mechanism
Definition at line 219 of file XMLFileCatalog.cpp.
|
virtual |
Delete FileID Node from the catalog.
Definition at line 357 of file XMLFileCatalog.cpp.
|
inlinevirtual |
Check if the catalog should be updated.
Definition at line 49 of file XMLFileCatalog.h.
|
inlinevirtual |
Drop all metadata of one FID.
Definition at line 81 of file XMLFileCatalog.h.
Drop specified metadata item.
Definition at line 342 of file XMLFileCatalog.cpp.
|
private |
Definition at line 351 of file XMLFileCatalog.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
private |
Definition at line 223 of file XMLFileCatalog.cpp.
|
virtual |
|
private |
Definition at line 499 of file XMLFileCatalog.cpp.
|
virtual |
|
virtual |
Dump all MetaData of the catalog for a given file ID.
Definition at line 303 of file XMLFileCatalog.cpp.
|
virtual |
Dump all physical file names of the catalog and their attributes associate to the FileID.
Definition at line 291 of file XMLFileCatalog.cpp.
It creates a new node File with name = fid in the XML file catalog
Definition at line 374 of file XMLFileCatalog.cpp.
|
virtual |
Parse the DOM tree of the XML catalog.
Definition at line 237 of file XMLFileCatalog.cpp.
Definition at line 269 of file XMLFileCatalog.cpp.
|
inlinevirtual |
Lookup file identifier by logical file name.
Definition at line 57 of file XMLFileCatalog.h.
|
inlinevirtual |
Lookup file identifier by physical file name.
Definition at line 53 of file XMLFileCatalog.h.
|
private |
Definition at line 229 of file XMLFileCatalog.cpp.
|
inlinevirtual |
Check if the catalog is read-only.
Definition at line 47 of file XMLFileCatalog.h.
|
virtual |
Create a FileID and Node.
Definition at line 363 of file XMLFileCatalog.cpp.
Create a FileID and Node of the logical file name with all the attributes.
Definition at line 439 of file XMLFileCatalog.cpp.
Create a FileID and Node of the physical file name with all the attributes.
Definition at line 409 of file XMLFileCatalog.cpp.
|
inlinevirtual |
Save DOM catalog to file.
Definition at line 45 of file XMLFileCatalog.h.
Insert/update metadata item.
Definition at line 321 of file XMLFileCatalog.cpp.
|
private |
Definition at line 94 of file XMLFileCatalog.h.
|
private |
Definition at line 96 of file XMLFileCatalog.h.
|
private |
Definition at line 97 of file XMLFileCatalog.h.
|
private |
Definition at line 98 of file XMLFileCatalog.h.
|
private |
Definition at line 95 of file XMLFileCatalog.h.
|
private |
Definition at line 92 of file XMLFileCatalog.h.
|
mutableprivate |
Definition at line 93 of file XMLFileCatalog.h.