summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Operation.h
blob: d347a3e923dda084e6cf1b2b25f5a4cdd8223b7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// **********************************************************************
//
// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

#ifndef ICEPY_OPERATION_H
#define ICEPY_OPERATION_H

#include <Config.h>
#include <Ice/CommunicatorF.h>
#include <Ice/Current.h>
#include <Ice/Object.h>

namespace IcePy
{

class Operation : public IceUtil::Shared
{
public:

    virtual ~Operation();

    virtual PyObject* invoke(const Ice::ObjectPrx&, PyObject*, PyObject*) = 0;
    virtual PyObject* invokeAsync(const Ice::ObjectPrx&, PyObject*, PyObject*, PyObject*) = 0;
    virtual void deprecate(const std::string&) = 0;
    virtual Ice::OperationMode mode() const = 0;

    virtual void dispatch(PyObject*, const Ice::AMD_Object_ice_invokePtr&, const std::vector<Ice::Byte>&,
                          const Ice::Current&) = 0;
};
typedef IceUtil::Handle<Operation> OperationPtr;

bool initOperation(PyObject*);

OperationPtr getOperation(PyObject*);

}

#endif