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

  1 karl  1.16 //%2006////////////////////////////////////////////////////////////////////////
  2 kumpf 1.1  //
  3 karl  1.12 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4            // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5            // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 karl  1.11 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.12 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8            // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl  1.14 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.16 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 kumpf 1.1  //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 kumpf 1.5  // of this software and associated documentation files (the "Software"), to
 16            // deal in the Software without restriction, including without limitation the
 17            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18 kumpf 1.1  // sell copies of the Software, and to permit persons to whom the Software is
 19            // furnished to do so, subject to the following conditions:
 20            // 
 21 kumpf 1.5  // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 kumpf 1.1  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24 kumpf 1.5  // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27 kumpf 1.1  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29            //
 30            //==============================================================================
 31            //
 32            // Author: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 33            //
 34 kumpf 1.7  // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
 35            //                (carolann_graves@hp.com)
 36 kumpf 1.1  //
 37            //%/////////////////////////////////////////////////////////////////////////////
 38            
 39            #ifndef Pegasus_MofWriter_h
 40            #define Pegasus_MofWriter_h
 41            
 42            #include <iostream>
 43            #include <Pegasus/Common/Config.h>
 44 kumpf 1.9  #include <Pegasus/Common/InternalException.h>
 45 kumpf 1.10 #include <Pegasus/Common/ArrayInternal.h>
 46 kumpf 1.1  #include <Pegasus/Common/CIMClass.h>
 47            #include <Pegasus/Common/CIMInstance.h>
 48            #include <Pegasus/Common/CIMProperty.h>
 49            #include <Pegasus/Common/CIMMethod.h>
 50            #include <Pegasus/Common/CIMParameter.h>
 51            #include <Pegasus/Common/CIMQualifier.h>
 52            #include <Pegasus/Common/CIMQualifierDecl.h>
 53            #include <Pegasus/Common/CIMValue.h>
 54 kumpf 1.4  #include <Pegasus/Common/CIMObjectPath.h>
 55 kumpf 1.6  #include <Pegasus/Common/Linkage.h>
 56 mike  1.15 #include <Pegasus/Common/Buffer.h>
 57 kumpf 1.1  
 58            PEGASUS_NAMESPACE_BEGIN
 59            
 60            class PEGASUS_COMMON_LINKAGE MofWriter
 61            {
 62            public:
 63            
 64                static void appendValueElement(
 65 mike  1.15         Buffer& out,
 66 kumpf 1.1          const CIMValue& value);
 67            
 68                static void appendValueReferenceElement(
 69 mike  1.15         Buffer& out,
 70 kumpf 1.4          const CIMObjectPath& reference);
 71 kumpf 1.1  
 72                static void appendClassElement(
 73 mike  1.15         Buffer& out,
 74 kumpf 1.1          const CIMConstClass& cimclass);
 75            
 76                static void printClassElement(
 77                    const CIMConstClass& cimclass,
 78                    PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
 79            
 80                static void appendInstanceElement(
 81 mike  1.15         Buffer& out,
 82 kumpf 1.1          const CIMConstInstance& instance);
 83            
 84                static void appendPropertyElement(
 85 karl  1.17         Boolean isDeclaration,
 86 mike  1.15         Buffer& out,
 87 kumpf 1.1          const CIMConstProperty& property);
 88            
 89                static void appendMethodElement(
 90 mike  1.15         Buffer& out,
 91 kumpf 1.1          const CIMConstMethod& method);
 92            
 93                static void appendParameterElement(
 94 mike  1.15         Buffer& out,
 95 kumpf 1.1          const CIMConstParameter& parameter);
 96            
 97                static void appendQualifierElement(
 98 mike  1.15         Buffer& out,
 99 kumpf 1.1          const CIMConstQualifier& qualifier);
100            
101                static void appendQualifierDeclElement(
102 mike  1.15         Buffer& out,
103 kumpf 1.1          const CIMConstQualifierDecl& qualifierDecl);
104            
105 kumpf 1.8      static String getQualifierFlavor(const CIMFlavor & flavor);
106 kumpf 1.2  
107 kumpf 1.7      static String getQualifierScope(const CIMScope & scope);
108 kumpf 1.3  
109 kumpf 1.1  private:
110            
111                MofWriter() { }
112            };
113            
114            PEGASUS_NAMESPACE_END
115            
116            #endif /* Pegasus_MofWriter_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2