forked from quickfix/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuickfixPython.h
More file actions
69 lines (55 loc) · 2.62 KB
/
Copy pathQuickfixPython.h
File metadata and controls
69 lines (55 loc) · 2.62 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG
* interface file instead.
* ----------------------------------------------------------------------------- */
#ifndef SWIG_quickfix_WRAP_H_
#define SWIG_quickfix_WRAP_H_
#include <map>
#include <string>
class SwigDirector_Application : public FIX::Application, public Swig::Director {
public:
SwigDirector_Application(PyObject *self);
virtual ~SwigDirector_Application();
virtual void onCreate(FIX::SessionID const &arg0);
virtual void onLogon(FIX::SessionID const &arg0);
virtual void onLogout(FIX::SessionID const &arg0);
virtual void toAdmin(FIX::Message &arg0, FIX::SessionID const &arg1);
virtual void toApp(FIX::Message &arg0, FIX::SessionID const &arg1) throw(FIX::DoNotSend);
virtual void fromAdmin(FIX::Message const &arg0, FIX::SessionID const &arg1) throw(FIX::FieldNotFound, FIX::IncorrectDataFormat, FIX::IncorrectTagValue, FIX::RejectLogon);
virtual void fromApp(FIX::Message const &arg0, FIX::SessionID const &arg1) throw(FIX::FieldNotFound, FIX::IncorrectDataFormat, FIX::IncorrectTagValue, FIX::UnsupportedMessageType);
/* Internal Director utilities */
public:
bool swig_get_inner(const char* swig_protected_method_name) const {
std::map<std::string, bool>::const_iterator iv = swig_inner.find(swig_protected_method_name);
return (iv != swig_inner.end() ? iv->second : false);
}
void swig_set_inner(const char* swig_protected_method_name, bool val) const
{ swig_inner[swig_protected_method_name] = val;}
private:
mutable std::map<std::string, bool> swig_inner;
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
/* VTable implementation */
PyObject *swig_get_method(size_t method_index, const char *method_name) const {
PyObject *method = vtable[method_index];
if (!method) {
swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
method = PyObject_GetAttr(swig_get_self(), name);
if (!method) {
std::string msg = "Method in class Application doesn't exist, undefined ";
msg += method_name;
Swig::DirectorMethodException::raise(msg.c_str());
}
vtable[method_index] = method;
};
return method;
}
private:
mutable swig::SwigVar_PyObject vtable[7];
#endif
};
#endif