OW_FTABLERef.hpp

Go to the documentation of this file.
00001 /*******************************************************************************
00002 * Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
00003 *
00004 * Redistribution and use in source and binary forms, with or without
00005 * modification, are permitted provided that the following conditions are met:
00006 *
00007 *  - Redistributions of source code must retain the above copyright notice,
00008 *    this list of conditions and the following disclaimer.
00009 *
00010 *  - Redistributions in binary form must reproduce the above copyright notice,
00011 *    this list of conditions and the following disclaimer in the documentation
00012 *    and/or other materials provided with the distribution.
00013 *
00014 *  - Neither the name of Vintela, Inc. nor the names of its
00015 *    contributors may be used to endorse or promote products derived from this
00016 *    software without specific prior written permission.
00017 *
00018 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
00019 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00020 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00021 * ARE DISCLAIMED. IN NO EVENT SHALL Vintela, Inc. OR THE CONTRIBUTORS
00022 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00023 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00024 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00025 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00026 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00027 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00028 * POSSIBILITY OF SUCH DAMAGE.
00029 *******************************************************************************/
00030 #ifndef OW_FTABLE_REF_HPP_
00031 #define OW_FTABLE_REF_HPP_
00032 //#include <string.h>
00033 #include "OW_config.h"
00034 #include "OW_CIMOMHandleIFC.hpp"
00035 #include "OW_CIMDataType.hpp"
00036 #include "OW_CIMProperty.hpp"
00037 #include "OW_String.hpp"
00038 #include "OW_CIMValue.hpp"
00039 #include "OW_CIMClass.hpp"
00040 #include "OW_CIMInstance.hpp"
00041 #include "OW_CIMObjectPath.hpp"
00042 #include "OW_CIMParameter.hpp"
00043 #include "OW_Array.hpp"
00044 #include "OW_CIMBase.hpp"
00045 #include "OW_ProviderEnvironmentIFC.hpp"
00046 #include "OW_SharedLibraryReference.hpp"
00047 #include "OW_Reference.hpp"
00048 #include "npi.h"
00049 
00050 namespace OW_NAMESPACE
00051 {
00052 
00053 typedef Array<char *> charVect;
00054 typedef enum {
00055   NOTHING,
00056   STRING,
00057   VECTOR,
00058   CIM_VALUE,
00059   CIM_QUALIFIER,
00060   CIM_PARAMVALUE,
00061   CIM_PROPERTY,
00062   CIM_INSTANCE,
00063   CIM_OBJECTPATH,
00064   CIM_CLASS
00065 } NPIGarbageType;
00066 
00067 
00068 class NPIContext {
00069 public:
00070    char * scriptName;
00071    void * my_perl;
00072    Array<void *> garbage;
00073    Array<NPIGarbageType> garbageType;
00074 };
00075 // my_perl serves as pointer to the perl environment for the perlIFC
00076 
00077 
00078 class NPIFTABLE {
00079 public:
00080   //CIMProvider;
00081   FP_INITIALIZE         fp_initialize;
00082   FP_CLEANUP            fp_cleanup;
00083   //InstanceProvider;
00084   FP_ENUMINSTANCENAMES  fp_enumInstanceNames;
00085   FP_ENUMINSTANCES      fp_enumInstances;
00086   FP_GETINSTANCE        fp_getInstance;
00087   FP_CREATEINSTANCE     fp_createInstance;
00088   FP_SETINSTANCE        fp_setInstance;
00089   FP_DELETEINSTANCE     fp_deleteInstance;
00090   FP_EXECQUERY          fp_execQuery;
00091   //AssociatorProvider
00092   FP_ASSOCIATORS        fp_associators;
00093   FP_ASSOCIATORNAMES    fp_associatorNames;
00094   FP_REFERENCES         fp_references;
00095   FP_REFERENCENAMES     fp_referenceNames;
00096   //MethodProvider
00097   FP_INVOKEMETHOD       fp_invokeMethod;
00098   //EventProvider
00099   FP_AUTHORIZEFILTER    fp_authorizeFilter;
00100   FP_MUSTPOLL           fp_mustPoll;
00101   FP_ACTIVATEFILTER     fp_activateFilter;
00102   FP_DEACTIVATEFILTER   fp_deActivateFilter;
00103   NPIContext      * npicontext;
00104   //NPIFTABLE& operator = (const ::FTABLE& original) {return *this;}
00105   NPIFTABLE& operator = (const ::FTABLE& original) 
00106   {
00107    memcpy(this, &original, sizeof(::FTABLE));
00108    return *this;
00109   }
00110 };
00111 typedef ::FTABLE (*FP_INIT_FT) ();
00112 typedef NPIFTABLE (*NPIFP_INIT_FT) ();
00113 typedef SharedLibraryReference< Reference<NPIFTABLE> > FTABLERef;
00114 
00115 } // end namespace OW_NAMESPACE
00116 
00117 #endif

Generated on Thu Feb 9 08:47:59 2006 for openwbem by  doxygen 1.4.6