forked from bruderstein/PythonScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCallbackExecArgs.h
More file actions
30 lines (22 loc) · 716 Bytes
/
CallbackExecArgs.h
File metadata and controls
30 lines (22 loc) · 716 Bytes
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
#ifndef CALLBACKEXECARGS_20140217_H
#define CALLBACKEXECARGS_20140217_H
namespace NppPythonScript
{
class CallbackExecArgs
{
public:
CallbackExecArgs()
: m_callbacks(new std::list<boost::python::object>()),
m_params(NULL)
{}
virtual ~CallbackExecArgs();
void addCallback(boost::python::object callback) { m_callbacks->push_back(callback); }
void setParams(boost::python::dict params);
std::list<boost::python::object> *getCallbacks() { return m_callbacks; }
boost::python::dict *getParams() { return m_params; }
private:
std::list<boost::python::object> *m_callbacks;
boost::python::dict *m_params;
};
}
#endif // CALLBACKEXECARGS_20140217_H