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

Diff for /pegasus/src/Pegasus/Common/XmlReader.h between version 1.5 and 1.19

version 1.5, 2001/03/05 04:29:02 version 1.19, 2001/12/13 14:54:05
Line 1 
Line 1 
 //BEGIN_LICENSE  //%/////////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM  // Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM,
   // The Open Group, Tivoli Systems
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a  // Permission is hereby granted, free of charge, to any person obtaining a copy
 // copy of this software and associated documentation files (the "Software"),  // of this software and associated documentation files (the "Software"), to
 // to deal in the Software without restriction, including without limitation  // deal in the Software without restriction, including without limitation the
 // the rights to use, copy, modify, merge, publish, distribute, sublicense,  // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 // and/or sell copies of the Software, and to permit persons to whom the  // sell copies of the Software, and to permit persons to whom the Software is
 // Software is furnished to do so, subject to the following conditions:  // furnished to do so, subject to the following conditions:
   //
   // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
   // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
   // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
   // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
   // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
   // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
   // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   //
   //==============================================================================
   //
   // Author: Mike Brasher (mbrasher@bmc.com)
   //
   // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
   //                  (carolann_graves@hp.com)
   //              Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
   //              Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 // //
 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  //%/////////////////////////////////////////////////////////////////////////////
 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  
 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL  
 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  
 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING  
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER  
 // DEALINGS IN THE SOFTWARE.  
 //  
 //END_LICENSE  
 //BEGIN_HISTORY  
 //  
 // Author:  
 //  
 // $Log$  
 // Revision 1.5  2001/03/05 04:29:02  mike  
 // renamed CimException to CIMException  
 //  
 // Revision 1.4  2001/02/20 07:25:57  mike  
 // Added basic create-instance in repository and in client.  
 //  
 // Revision 1.3  2001/02/19 01:47:16  mike  
 // Renamed names of the form CIMConst to ConstCIM.  
 //  
 // Revision 1.2  2001/02/16 02:06:07  mike  
 // Renamed many classes and headers.  
 //  
 // Revision 1.1.1.1  2001/01/14 19:53:33  mike  
 // Pegasus import  
 //  
 //  
 //END_HISTORY  
   
 ////////////////////////////////////////////////////////////////////////////////  
 //  
 // XmlReader.h  
 //  
 ////////////////////////////////////////////////////////////////////////////////  
  
 #ifndef Pegasus_XmlReader_h #ifndef Pegasus_XmlReader_h
 #define Pegasus_XmlReader_h #define Pegasus_XmlReader_h
Line 65 
Line 48 
 class CIMProperty; class CIMProperty;
 class CIMParameter; class CIMParameter;
 class CIMMethod; class CIMMethod;
   class CIMObject;
   class CIMNamedInstance;
   class CIMObjectWithPath;
   class CIMParamValue;
  
 class PEGASUS_COMMON_LINKAGE XmlReader class PEGASUS_COMMON_LINKAGE XmlReader
 { {
Line 92 
Line 79 
         XmlParser& parser,         XmlParser& parser,
         XmlEntry& entry);         XmlEntry& entry);
  
       static Boolean testXmlDeclaration (
         XmlParser& parser,
         XmlEntry& entry);
   
     static Boolean testStartTag(     static Boolean testStartTag(
         XmlParser& parser,         XmlParser& parser,
         XmlEntry& entry,         XmlEntry& entry,
Line 112 
Line 103 
  
     static void testCimStartTag(XmlParser& parser);     static void testCimStartTag(XmlParser& parser);
  
     static Boolean getIsArrayAttribute(  
         Uint32 lineNumber,  
         const XmlEntry& entry,  
         const char* tagName,  
         Boolean& value);  
   
     static String getCimNameAttribute(     static String getCimNameAttribute(
         Uint32 lineNumber,         Uint32 lineNumber,
         const XmlEntry& entry,         const XmlEntry& entry,
Line 179 
Line 164 
         CIMType type,         CIMType type,
         CIMValue& value);         CIMValue& value);
  
       static Boolean getStringValueElement(
           XmlParser& parser,
           String& str,
           Boolean required);
   
     static CIMValue stringArrayToValue(     static CIMValue stringArrayToValue(
         Uint32 lineNumber,         Uint32 lineNumber,
         const Array<const char*>& array,         const Array<const char*>& array,
Line 237 
Line 227 
         String& className,         String& className,
         Boolean required = false);         Boolean required = false);
  
     static KeyBinding::CIMType getValueTypeAttribute(      static KeyBinding::Type getValueTypeAttribute(
         Uint32 lineNumber,         Uint32 lineNumber,
         const XmlEntry& entry,         const XmlEntry& entry,
         const char* elementName);         const char* elementName);
  
     static Boolean getKeyValueElement(     static Boolean getKeyValueElement(
         XmlParser& parser,         XmlParser& parser,
         KeyBinding::CIMType& type,          KeyBinding::Type& type,
         String& value);         String& value);
  
     static Boolean getKeyBindingElement(     static Boolean getKeyBindingElement(
         XmlParser& parser,         XmlParser& parser,
         String& name,         String& name,
         String& value,         String& value,
         KeyBinding::CIMType& type);          KeyBinding::Type& type);
  
     static Boolean getInstanceNameElement(     static Boolean getInstanceNameElement(
         XmlParser& parser,         XmlParser& parser,
         String& className,         String& className,
         Array<KeyBinding>& keyBindings);         Array<KeyBinding>& keyBindings);
  
       static Boolean getInstanceNameElement(
           XmlParser& parser,
           CIMReference& instanceName);
   
     static Boolean getInstancePathElement(     static Boolean getInstancePathElement(
         XmlParser& parser,         XmlParser& parser,
         CIMReference& reference);         CIMReference& reference);
Line 310 
Line 304 
         XmlParser& parser,         XmlParser& parser,
         CIMInstance& cimInstance);         CIMInstance& cimInstance);
  
     static void getObject(XmlParser& parser, CIMClass& x)      static Boolean getNamedInstanceElement(
     {          XmlParser& parser,
         if (!getClassElement(parser, x))          CIMNamedInstance& namedInstance);
         {  
             throw XmlValidationError(parser.getLine(),  
                 "expected CLASS element");  
         }  
     }  
  
     static void getObject(XmlParser& parser, CIMInstance& x)      static void getObject(XmlParser& parser, CIMClass& x);
     {  
         if (!getInstanceElement(parser, x))  
         {  
             throw XmlValidationError(parser.getLine(),  
                 "expected INSTANCE element");  
         }  
     }  
  
     static void getObject(XmlParser& parser, CIMQualifierDecl& x)      static void getObject(XmlParser& parser, CIMInstance& x);
     {  
         if (!getQualifierDeclElement(parser, x))      static void getObject(XmlParser& parser, CIMQualifierDecl& x);
         {  
             throw XmlValidationError(parser.getLine(),  
                 "expected QUALIFIER.DECLARATION element");  
         }  
     }  
  
     static Boolean getMessageStartTag(     static Boolean getMessageStartTag(
         XmlParser& parser,         XmlParser& parser,
         Uint32& id,          String& id,
         const char*& protocolVersion);         const char*& protocolVersion);
  
     static Boolean getIMethodCallStartTag(     static Boolean getIMethodCallStartTag(
Line 354 
Line 331 
         XmlParser& parser,         XmlParser& parser,
         const char*& name);         const char*& name);
  
       static Boolean getPropertyValue(
           XmlParser& parser,
           CIMValue& cimValue);
   
     static Boolean getBooleanValueElement(     static Boolean getBooleanValueElement(
         XmlParser& parser,         XmlParser& parser,
         Boolean& result,         Boolean& result,
Line 361 
Line 342 
  
     static Boolean getErrorElement(     static Boolean getErrorElement(
         XmlParser& parser,         XmlParser& parser,
         CIMException::Code& code,          CIMStatusCode& code,
         const char*& description,         const char*& description,
         Boolean required = false);         Boolean required = false);
  
       static Boolean getObjectWithPath(
           XmlParser& parser,
           CIMObjectWithPath& objectWithPath);
   
       static Boolean getObjectNameElement(
           XmlParser& parser,
           CIMReference& objectName);
   
       static Boolean getObjectPathElement(
           XmlParser& parser,
           CIMReference& objectPath);
   
       static Boolean getEMethodCallStartTag(
           XmlParser& parser,
           const char*& name);
   
       static Boolean getEMethodResponseStartTag(
           XmlParser& parser,
           const char*& name);
   
       static Boolean getMethodCallStartTag(
           XmlParser& parser,
           const char*& name);
   
       static Boolean getMethodResponseStartTag(
           XmlParser& parser,
           const char*& name);
   
       static Boolean getParamValueTag(
           XmlParser& parser,
           const char*& name);
   
 private: private:
  
     XmlReader()     XmlReader()


Legend:
Removed from v.1.5  
changed lines
  Added in v.1.19

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2