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

  1 martin 1.23 //%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.24 //
  3 martin 1.23 // Licensed to The Open Group (TOG) under one or more contributor license
  4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5             // this work for additional information regarding copyright ownership.
  6             // Each contributor licenses this file to you under the OpenPegasus Open
  7             // Source License; you may not use this file except in compliance with the
  8             // License.
  9 martin 1.24 //
 10 martin 1.23 // Permission is hereby granted, free of charge, to any person obtaining a
 11             // copy of this software and associated documentation files (the "Software"),
 12             // to deal in the Software without restriction, including without limitation
 13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14             // and/or sell copies of the Software, and to permit persons to whom the
 15             // Software is furnished to do so, subject to the following conditions:
 16 martin 1.24 //
 17 martin 1.23 // The above copyright notice and this permission notice shall be included
 18             // in all copies or substantial portions of the Software.
 19 martin 1.24 //
 20 martin 1.23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.24 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 martin 1.24 //
 28 martin 1.23 //////////////////////////////////////////////////////////////////////////
 29 mike   1.9  //
 30             //%/////////////////////////////////////////////////////////////////////////////
 31             
 32             
 33 gerarda 1.14 #ifndef _CIMMOFMESSAGES_H_
 34              #define _CIMMOFMESSAGES_H_
 35              
 36 mike    1.9  //
 37              // cimmofMessages:  an interface that hides the underlying
 38              // internationalization implementation for the CIM MOF compiler.
 39              // Any strings that the compiler needs come out of this interface.
 40              // When we settle on an MSB internationalization method, the
 41              // strings will be translated for the locale.
 42              
 43              #include <Pegasus/Common/String.h>
 44 kumpf   1.13 #include <Pegasus/Common/ArrayInternal.h>
 45 mike    1.9  
 46              PEGASUS_NAMESPACE_BEGIN
 47              PEGASUS_USING_STD;
 48              
 49 karl    1.20 class cimmofMessages
 50              {
 51                  public:
 52                      enum MsgCode
 53                      {
 54                          CIM_ERR_SUCCESS = 0,
 55                          PARSER_SYNTAX_ERROR,
 56                          APPLY_PARAMETER_ERROR,
 57                          NEW_PARAMETER_ERROR,
 58                          UNINITIALIZED_PARAMETER_ERROR,
 59                          METHOD_ALREADY_EXISTS_WARNING,
 60                          APPLY_METHOD_ERROR,
 61                          NEW_METHOD_ERROR,
 62                          ADD_QUALIFIER,
 63                          TRACE,
 64                          ADD_QUALIFIER_DECL_ERROR,
 65                          TAB_OK,
 66                          NEW_QUALIFIER_ERROR,
 67                          ADD_QUALIFIER_ERROR,
 68                          NEW_QUALIFIER_DECLARATION_ERROR,
 69                          GET_QUALIFIER_DECL_ERROR,
 70 karl    1.20             ADD_INSTANCE,
 71                          UNINITIALIZED_PROPERTY_ERROR,
 72                          PROPERTY_ALREADY_EXISTS_WARNING,
 73                          APPLYING_PROPERTY_ERROR,
 74                          NEW_PROPERTY_ERROR,
 75                          NEW_CLASS_ERROR,
 76                          ADD_CLASS,
 77                          CLASS_EXISTS_WARNING,
 78                          ADD_CLASS_ERROR,
 79                          SETREPOSITORY_NO_COMPILER_OPTIONS,
 80                          SETREPOSITORY_BLANK_NAME,
 81                          NAMESPACE_CREATE_ERROR,
 82                          REPOSITORY_CREATE_ERROR,
 83                          NEW_REFERENCE_ERROR,
 84                          FIND_CLASS_OF_INSTANCE_ERROR,
 85                          FIND_PROPERTY_VALUE_ERROR,
 86                          CLONING_PROPERTY_ERROR,
 87                          APPLY_INSTANCE_PROPERTY_ERROR,
 88                          GET_INSTANCE_PROPERTY_ERROR,
 89                          GET_CLASS_ERROR,
 90                          GET_PROPERTY_VALUE_ERROR,
 91 karl    1.20             NEW_INSTANCE_ERROR,
 92                          INSTANCE_PROPERTY_EXISTS_WARNING,
 93                          INSTANCE_EXISTS_WARNING,
 94                          ADD_INSTANCE_ERROR,
 95                          GENERAL_ERROR,
 96                          CLASS_NOT_UPDATED,
 97                          SAME_VERSION,
 98                          NO_EXPERIMENTAL_UPDATE,
 99                          NO_VERSION_UPDATE,
100                          NO_CLASS_UPDATE,
101                          INVALID_VERSION_FORMAT,
102 kumpf   1.21             INVALID_LITERAL_VALUE,
103 karl    1.25             CLASS_ALIAS_FOUND,
104                          INSTANCE_ALIAS_CLASS_NOT_FOUND,
105                          PRAGMA_NOT_IMPLEMENTED_WARNING,
106                          LOCALE_NOT_IMPLEMENTED_WARNING,
107 karl    1.20             END
108                      };
109                      typedef Array<String> arglist;
110                      static const arglist EMPTYLIST;
111 karl    1.25 
112 kumpf   1.22         static const char* msgCodeToString(MsgCode code);
113 karl    1.25 
114 karl    1.20         static void getMessage(String &out, MsgCode code,
115                          const arglist &al =
116                          cimmofMessages::EMPTYLIST);
117 mike    1.9  };
118              
119              PEGASUS_NAMESPACE_END
120 gerarda 1.14 
121              #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2