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 //%/////////////////////////////////////////////////////////////////////////////
33
34 #ifndef Pegasus_MofWriter_h
35 #define Pegasus_MofWriter_h
36
37 #include <iostream>
38 #include <Pegasus/Common/Config.h>
|
39 kumpf 1.9 #include <Pegasus/Common/InternalException.h>
|
40 kumpf 1.10 #include <Pegasus/Common/ArrayInternal.h>
|
41 kumpf 1.1 #include <Pegasus/Common/CIMClass.h>
42 #include <Pegasus/Common/CIMInstance.h>
43 #include <Pegasus/Common/CIMProperty.h>
44 #include <Pegasus/Common/CIMMethod.h>
45 #include <Pegasus/Common/CIMParameter.h>
46 #include <Pegasus/Common/CIMQualifier.h>
47 #include <Pegasus/Common/CIMQualifierDecl.h>
48 #include <Pegasus/Common/CIMValue.h>
|
49 kumpf 1.4 #include <Pegasus/Common/CIMObjectPath.h>
|
50 kumpf 1.6 #include <Pegasus/Common/Linkage.h>
|
51 mike 1.15 #include <Pegasus/Common/Buffer.h>
|
52 kumpf 1.1
53 PEGASUS_NAMESPACE_BEGIN
54
55 class PEGASUS_COMMON_LINKAGE MofWriter
56 {
57 public:
58
59 static void appendValueElement(
|
60 mike 1.15 Buffer& out,
|
61 kumpf 1.1 const CIMValue& value);
62
63 static void appendValueReferenceElement(
|
64 mike 1.15 Buffer& out,
|
65 kumpf 1.4 const CIMObjectPath& reference);
|
66 kumpf 1.1
67 static void appendClassElement(
|
68 mike 1.15 Buffer& out,
|
69 kumpf 1.1 const CIMConstClass& cimclass);
70
71 static void printClassElement(
72 const CIMConstClass& cimclass,
73 PEGASUS_STD(ostream)& os=PEGASUS_STD(cout));
74
75 static void appendInstanceElement(
|
76 mike 1.15 Buffer& out,
|
77 kumpf 1.1 const CIMConstInstance& instance);
78
79 static void appendPropertyElement(
|
80 karl 1.17 Boolean isDeclaration,
|
81 mike 1.15 Buffer& out,
|
82 kumpf 1.1 const CIMConstProperty& property);
83
84 static void appendMethodElement(
|
85 mike 1.15 Buffer& out,
|
86 kumpf 1.1 const CIMConstMethod& method);
87
88 static void appendParameterElement(
|
89 mike 1.15 Buffer& out,
|
90 kumpf 1.1 const CIMConstParameter& parameter);
91
92 static void appendQualifierElement(
|
93 mike 1.15 Buffer& out,
|
94 kumpf 1.1 const CIMConstQualifier& qualifier);
95
96 static void appendQualifierDeclElement(
|
97 mike 1.15 Buffer& out,
|
98 kumpf 1.1 const CIMConstQualifierDecl& qualifierDecl);
99
|
100 kumpf 1.8 static String getQualifierFlavor(const CIMFlavor & flavor);
|
101 kumpf 1.2
|
102 kumpf 1.7 static String getQualifierScope(const CIMScope & scope);
|
103 kumpf 1.3
|
104 kumpf 1.1 private:
105
106 MofWriter() { }
107 };
108
109 PEGASUS_NAMESPACE_END
110
111 #endif /* Pegasus_MofWriter_h */
|