Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

XMLSpecializedSAXHandler.h

Go to the documentation of this file.
00001 
00037 #ifndef _AMIRE_PERSISTENCE_XML_SPECIALIZED_SAX_HANDLER_H
00038 #define _AMIRE_PERSISTENCE_XML_SPECIALIZED_SAX_HANDLER_H
00039 
00040 #include <amire/property/Property.h>
00041 #include <amire/property/PropertyType.h>
00042 #include <amire/component/ComponentManager.h>
00043 #include <xercesc/sax2/DefaultHandler.hpp>
00044 
00045 #define LOCAL "local"
00046 #define PATH "PATH"
00047 
00048 namespace amire {
00049   namespace persistence {
00050     
00051     
00052     class AMIRE_EXPORT_API XMLSpecializedSAXHandler {             
00053       protected:
00054         amire::component::ComponentManager* componentManager;  
00055         std::string currentLibraryName;        
00056         std::string libraryPathVariable;
00057       public:         
00058         XMLSpecializedSAXHandler(amire::component::ComponentManager* aComponentManager):componentManager(aComponentManager) {        
00059         }        
00060         virtual void startElement (    
00061           const   XMLCh* const    uri,
00062           const   XMLCh* const    localname,
00063           const   XMLCh* const    qname,
00064           const   Attributes&     attrs    
00065         ) = 0;    
00066         virtual void endElement(
00067                       const XMLCh* const uri,
00068                       const XMLCh* const localname,
00069                       const XMLCh* const qname
00070               ) = 0;              
00071               
00072               virtual void characters(
00073                 const   XMLCh* const characters ,
00074                 const   unsigned int length) {
00075               };
00076                        
00077           virtual amire::component::ComponentManager* getComponentManager() const {
00078             return componentManager;
00079           }                      
00080           
00081           const std::string getCurrentLibraryName() const {
00082             return currentLibraryName;
00083           }
00084           
00085           void setLibraryPathVariable(std::string aLibraryPathVariable) {
00086           libraryPathVariable = aLibraryPathVariable;
00087         }
00088         
00089           void setCurrentLibraryName(const std::string aLibraryName) {
00090             currentLibraryName = aLibraryName;
00091           };
00092     };
00093   }
00094 }
00095 #endif

Generated on Tue May 20 17:23:54 2003 for AMIRE-Framework by doxygen1.3