(file) Return to XmlParser.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/XmlParser.h between version 1.30 and 1.30.8.5

version 1.30, 2007/07/30 06:50:57 version 1.30.8.5, 2008/03/20 00:44:14
Line 58 
Line 58 
         UNTERMINATED_COMMENT,         UNTERMINATED_COMMENT,
         UNTERMINATED_CDATA,         UNTERMINATED_CDATA,
         UNTERMINATED_DOCTYPE,         UNTERMINATED_DOCTYPE,
         TOO_MANY_ATTRIBUTES,  
         MALFORMED_REFERENCE,         MALFORMED_REFERENCE,
         EXPECTED_COMMENT_OR_CDATA,         EXPECTED_COMMENT_OR_CDATA,
         START_END_MISMATCH,         START_END_MISMATCH,
         UNCLOSED_TAGS,         UNCLOSED_TAGS,
         MULTIPLE_ROOTS,         MULTIPLE_ROOTS,
         VALIDATION_ERROR,         VALIDATION_ERROR,
         SEMANTIC_ERROR          SEMANTIC_ERROR,
           MALFORMED_NAMESPACE_DECL,
           UNSUPPORTED_NAMESPACE,
           UNDECLARED_NAMESPACE
     };     };
  
  
Line 104 
Line 106 
     XmlSemanticError(Uint32 lineNumber, MessageLoaderParms& msgParms);     XmlSemanticError(Uint32 lineNumber, MessageLoaderParms& msgParms);
 }; };
  
   struct XmlNamespace
   {
       const char* localName;
       const char* extendedName;
       int type;
       Uint32 scopeLevel;
   };
   
 struct XmlAttribute struct XmlAttribute
 { {
       int nsType;
     const char* name;     const char* name;
     const char* value;     const char* value;
 }; };
  
 struct PEGASUS_COMMON_LINKAGE XmlEntry struct PEGASUS_COMMON_LINKAGE XmlEntry
 { {
     enum CIMType      enum XmlEntryType
     {     {
         XML_DECLARATION,         XML_DECLARATION,
         START_TAG,         START_TAG,
Line 124 
Line 135 
         CONTENT         CONTENT
     };     };
  
     enum { MAX_ATTRIBUTES = 10 };      XmlEntryType type;
       int nsType;
     CIMType type;  
     const char* text;     const char* text;
     XmlAttribute attributes[MAX_ATTRIBUTES];      Array<XmlAttribute> attributes;
     Uint32 attributeCount;  
  
     void print() const;     void print() const;
  
       const char* getUnqualifiedName() const;
   
     const XmlAttribute* findAttribute(const char* name) const;     const XmlAttribute* findAttribute(const char* name) const;
  
       const XmlAttribute* findAttribute(int nsType, const char* name) const;
   
     Boolean getAttributeValue(const char* name, Uint32& value) const;     Boolean getAttributeValue(const char* name, Uint32& value) const;
  
     Boolean getAttributeValue(const char* name, Real32& value) const;     Boolean getAttributeValue(const char* name, Real32& value) const;
Line 155 
Line 168 
  
     // Warning: this constructor modifies the text.     // Warning: this constructor modifies the text.
  
     XmlParser(char* text);      XmlParser(char* text, XmlNamespace* ns = 0);
  
     /** Comments are returned with entry if includeComment is true else     /** Comments are returned with entry if includeComment is true else
         XmlParser ignores comments. Default is false.         XmlParser ignores comments. Default is false.
Line 170 
Line 183 
  
     Uint32 getLine() const { return _line; }     Uint32 getLine() const { return _line; }
  
       XmlNamespace* getNamespace(int nsType);
       int getSupportedNamespaceType(const char* extendedName);
   
 private: private:
  
     Boolean _getElementName(char*& p);     Boolean _getElementName(char*& p);
Line 186 
Line 202 
  
     void _getElement(char*& p, XmlEntry& entry);     void _getElement(char*& p, XmlEntry& entry);
  
       int _getNamespaceType(const char* tag);
   
     Uint32 _line;     Uint32 _line;
     char* _current;     char* _current;
     char _restoreChar;     char _restoreChar;
     Stack<char*> _stack;     Stack<char*> _stack;
     Boolean _foundRoot;     Boolean _foundRoot;
     Stack<XmlEntry> _putBackStack;     Stack<XmlEntry> _putBackStack;
   
       Uint32 _scopeLevel;
       XmlNamespace* _supportedNamespaces;
       Stack<XmlNamespace> _nameSpaces;
 }; };
  
 PEGASUS_COMMON_LINKAGE void XmlAppendCString( PEGASUS_COMMON_LINKAGE void XmlAppendCString(


Legend:
Removed from v.1.30  
changed lines
  Added in v.1.30.8.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2