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

  1 martin 1.14 //%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.15 //
  3 martin 1.14 // 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.15 //
 10 martin 1.14 // 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.15 //
 17 martin 1.14 // The above copyright notice and this permission notice shall be included
 18             // in all copies or substantial portions of the Software.
 19 martin 1.15 //
 20 martin 1.14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.15 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.14 // 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.15 //
 28 martin 1.14 //////////////////////////////////////////////////////////////////////////
 29 bob    1.1  //
 30             //%/////////////////////////////////////////////////////////////////////////////
 31             //
 32             // This class is the interface between the cimmof compiler, in its various
 33             // forms, and the various Pegasus repository interfaces which as the
 34             // time this class was created were CIMRepository and CIMClient.
 35             //
 36             // This class supports only the operations that the compiler needs, which
 37             // are
 38             //     addClass()
 39             //     addInstance()
 40             //     addQualifier()
 41             //     createNameSpace()
 42             //
 43             // If we create compiler-like tools to do mass changes to the repository,
 44             // then I expect that we will add methods to deal with the modification.
 45             // This class is intended to be very light, basically making it easy
 46             // to choose what repository and what repository interface to use.
 47             // It includes both, since there's nothing to be saved by splitting them.
 48             // Anything that the client or repository interface throws gets passed
 49             // to the cimmofParser level, which is equipped to handle the exceptions
 50 bob    1.1  //
 51             
 52             #ifndef CIMMOF_CLIENT_H_
 53             #define CIMMOF_CLIENT_H_
 54             
 55 kumpf  1.2  #include <Pegasus/Common/Config.h>
 56 bob    1.1  #include <Pegasus/Common/String.h>
 57             #include "compilerCommonDefs.h"
 58             #include <Pegasus/Client/CIMClient.h>
 59 kumpf  1.5  #include <Pegasus/Compiler/Linkage.h>
 60 bob    1.1  
 61 mateus.baur 1.12 #define CIMMOFCLIENT_TIMEOUT_DEFAULT 120000
 62                  
 63 bob         1.1  PEGASUS_NAMESPACE_BEGIN
 64                  
 65                  // Forward declarations;
 66                  class CIMClass;
 67                  class CIMQualifierDecl;
 68                  class CIMInstance;
 69                  
 70 karl        1.13 class PEGASUS_COMPILER_LINKAGE cimmofClient
 71                  {
 72                      private:
 73                          compilerCommonDefs::operationType _ot;
 74                          CIMClient *_client;
 75                      public:
 76                          cimmofClient();
 77                          virtual ~cimmofClient();
 78                          void init(String &location,
 79                                  compilerCommonDefs::operationType ot);
 80                          virtual void addClass(
 81                                  const CIMNamespaceName &nameSpace,
 82                                  CIMClass &Class) const;
 83                          virtual void addQualifier(
 84                                  const CIMNamespaceName &nameSpace,
 85                                  CIMQualifierDecl &qual) const;
 86                          virtual void addInstance(
 87                                  const CIMNamespaceName &nameSpace,
 88                                  CIMInstance &instance) const;
 89                          virtual CIMQualifierDecl getQualifierDecl(
 90                                  const CIMNamespaceName &nameSpace,
 91 karl        1.13                 const CIMName &qualifierName) const;
 92                          virtual CIMClass getClass(
 93                                  const CIMNamespaceName &nameSpace,
 94                                  const CIMName &className) const;
 95                          virtual void modifyClass(
 96                                  const CIMNamespaceName &nameSpace,
 97                                  CIMClass &Class) const;
 98                          virtual void createNameSpace(const CIMNamespaceName &nameSpace) const;
 99 bob         1.1  };
100                  
101                  PEGASUS_NAMESPACE_END
102                  
103                  #endif
104                  
105                  
106                  
107                  

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2