Back to index

nordugrid-arc-nox  1.1.0~rc6
pythonwrapper.h
Go to the documentation of this file.
00001 #ifndef __ARC_SERVICE_PYTHON_WRAPPER_H_
00002 #define __ARC_SERVICE_PYTHON_WRAPPER_H__
00003 
00004 #include <Python.h>
00005 #include <arc/infosys/RegisteredService.h>
00006 #include <arc/Logger.h>
00007 
00008 namespace Arc {
00009 class Service_PythonWrapper: public Arc::RegisteredService {
00010     protected:
00011         Arc::MCC_Status make_fault(Arc::Message& outmsg);
00012         static Arc::Logger logger;
00013         PyObject *arc_module;
00014         PyObject *module;
00015         PyObject *object;
00016         bool initialized;
00017 
00018     public:
00019         Service_PythonWrapper(Arc::Config *cfg);
00020         virtual ~Service_PythonWrapper(void);
00022         virtual Arc::MCC_Status process(Arc::Message&, Arc::Message&);
00023         bool RegistrationCollector(Arc::XMLNode&);
00024 };
00025 
00026 } // namespace Arc
00027 
00028 #endif // __ARC_SERVICE_PYTHON_WRAPPER_H__
00029