1 karl 1.19 //%2006////////////////////////////////////////////////////////////////////////
|
2 mike 1.9 //
|
3 karl 1.17 // 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.15 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.17 // 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.18 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.19 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 mike 1.9 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
15 kumpf 1.11 // 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 mike 1.9 // 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.11 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
22 mike 1.9 // 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.11 // 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 mike 1.9 // 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: Bob Blair (bblair@bmc.com)
33 //
|
34 gerarda 1.14 // Modified By: Gerarda Marquez (gmarquez@us.ibm.com)
35 // -- PEP 43 changes
|
36 mike 1.9 //
37 //%/////////////////////////////////////////////////////////////////////////////
38
39
|
40 gerarda 1.14 #ifndef _CIMMOFMESSAGES_H_
41 #define _CIMMOFMESSAGES_H_
42
|
43 mike 1.9 //
44 // cimmofMessages: an interface that hides the underlying
45 // internationalization implementation for the CIM MOF compiler.
46 // Any strings that the compiler needs come out of this interface.
47 // When we settle on an MSB internationalization method, the
48 // strings will be translated for the locale.
49
50 #include <Pegasus/Common/String.h>
|
51 kumpf 1.13 #include <Pegasus/Common/ArrayInternal.h>
|
52 mike 1.9
53 PEGASUS_NAMESPACE_BEGIN
54 PEGASUS_USING_STD;
55
56 class cimmofMessages {
57 public:
58 enum MsgCode {
59 CIM_ERR_SUCCESS = 0,
60 PARSER_SYNTAX_ERROR,
61 APPLY_PARAMETER_ERROR,
62 NEW_PARAMETER_ERROR,
63 UNINITIALIZED_PARAMETER_ERROR,
64 METHOD_ALREADY_EXISTS_WARNING,
65 APPLY_METHOD_ERROR,
66 NEW_METHOD_ERROR,
67 ADD_QUALIFIER,
68 TRACE,
69 ADD_QUALIFIER_DECL_ERROR,
70 TAB_OK,
71 NEW_QUALIFIER_ERROR,
72 ADD_QUALIFIER_ERROR,
73 mike 1.9 NEW_QUALIFIER_DECLARATION_ERROR,
|
74 bob 1.10 GET_QUALIFIER_DECL_ERROR,
|
75 mike 1.9 ADD_INSTANCE,
76 UNINITIALIZED_PROPERTY_ERROR,
77 PROPERTY_ALREADY_EXISTS_WARNING,
78 APPLYING_PROPERTY_ERROR,
79 NEW_PROPERTY_ERROR,
80 NEW_CLASS_ERROR,
81 ADD_CLASS,
82 CLASS_EXISTS_WARNING,
83 ADD_CLASS_ERROR,
84 SETREPOSITORY_NO_COMPILER_OPTIONS,
85 SETREPOSITORY_BLANK_NAME,
86 NAMESPACE_CREATE_ERROR,
87 REPOSITORY_CREATE_ERROR,
88 NEW_REFERENCE_ERROR,
89 FIND_CLASS_OF_INSTANCE_ERROR,
90 FIND_PROPERTY_VALUE_ERROR,
91 CLONING_PROPERTY_ERROR,
92 APPLY_INSTANCE_PROPERTY_ERROR,
93 GET_INSTANCE_PROPERTY_ERROR,
|
94 chuck 1.16 GET_CLASS_ERROR,
|
95 mike 1.9 GET_PROPERTY_VALUE_ERROR,
96 NEW_INSTANCE_ERROR,
97 INSTANCE_PROPERTY_EXISTS_WARNING,
98 INSTANCE_EXISTS_WARNING,
99 ADD_INSTANCE_ERROR,
|
100 kumpf 1.12 GENERAL_ERROR,
|
101 gerarda 1.14 CLASS_NOT_UPDATED,
102 SAME_VERSION,
103 NO_EXPERIMENTAL_UPDATE,
104 NO_VERSION_UPDATE,
105 NO_CLASS_UPDATE,
106 INVALID_VERSION_FORMAT,
|
107 mike 1.9 END
108 };
109 typedef Array<String> arglist;
110 static const arglist EMPTYLIST;
111 static const String &msgCodeToString(MsgCode code);
112 static void getMessage(String &out, MsgCode code,
113 const arglist &al =
114 cimmofMessages::EMPTYLIST);
115 };
116
117 PEGASUS_NAMESPACE_END
|
118 gerarda 1.14
119 #endif
|