#include <boost/python.hpp>
#include <datetime.h>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/date_time/c_local_time_adjustor.hpp>
#include "opc/ua/client/client.h"
#include "opc/ua/client/binary_client.h"
#include "opc/ua/node.h"
#include "opc/ua/event.h"
#include "opc/ua/server/server.h"
#include "opc/ua/protocol/protocol.h"
#include "opc/ua/services/services.h"
#include "opc/ua/subscription.h"
#include "opc/ua/protocol/string_utils.h"
#include "py_opcua_enums.h"
#include "py_opcua_helpers.h"
#include "py_opcua_subscriptionclient.h"
#include "py_opcua_variant.h"
Go to the source code of this file.
Classes | |
struct | DateTimeOpcUaToPythonConverter |
struct | DateTimePythonToOpcUaConverter |
struct | LocalizedTextToPythonConverter |
struct | PythonStringToLocalizedTextConverter |
Defines | |
#define | _property(X) add_property( #X, &DataValue_get_ ## X, &DataValue_set_ ## X) |
Functions | |
BOOST_PYTHON_FUNCTION_OVERLOADS (DateTimeFromTimeT_stub, DateTime::FromTimeT, 1, 2) | |
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS (SubscriptionSubscribeDataChange_stubs, Subscription::SubscribeDataChange, 1, 2) | |
BOOST_PYTHON_MODULE (opcua) | |
static boost::shared_ptr < DataValue > | DataValue_constructor1 (const object &obj, VariantType vtype) |
static uint16_t | DataValue_get_server_picoseconds (const DataValue &self) |
static DateTime | DataValue_get_server_timestamp (const DataValue &self) |
static uint16_t | DataValue_get_source_picoseconds (const DataValue &self) |
static DateTime | DataValue_get_source_timestamp (const DataValue &self) |
static StatusCode | DataValue_get_status (const DataValue &self) |
static object | DataValue_get_value (const DataValue &self) |
static void | DataValue_set_server_picoseconds (DataValue &self, uint16_t ps) |
static void | DataValue_set_server_timestamp (DataValue &self, const DateTime &dt) |
static void | DataValue_set_source_picoseconds (DataValue &self, uint16_t ps) |
static void | DataValue_set_source_timestamp (DataValue &self, const DateTime &dt) |
static void | DataValue_set_status (DataValue &self, const StatusCode &sc) |
static void | DataValue_set_value (DataValue &self, const object &obj, VariantType vtype) |
static boost::shared_ptr < DateTime > | makeOpcUaDateTime (const boost::python::object &bobj) |
static void | Node_SetValue (Node &self, const object &obj, VariantType vtype) |
static boost::shared_ptr< NodeId > | NodeId_constructor (const std::string &encodedNodeId) |
static object | NodeId_GetIdentifier (const NodeId &self) |
static boost::python::object | ToPyDateTime (const DateTime &self) |
static uint64_t | ToWinEpoch (PyObject *pydate) |
static boost::shared_ptr < Subscription > | UaClient_CreateSubscription (UaClient &self, uint period, PySubscriptionHandler &callback) |
static Node | UaClient_GetNode (UaClient &self, ObjectId objectid) |
static boost::shared_ptr < Subscription > | UaServer_CreateSubscription (UaServer &self, uint period, PySubscriptionHandler &callback) |
static Node | UaServer_GetNode (UaServer &self, ObjectId objectid) |
#define _property | ( | X | ) | add_property( #X, &DataValue_get_ ## X, &DataValue_set_ ## X) |
BOOST_PYTHON_FUNCTION_OVERLOADS | ( | DateTimeFromTimeT_stub | , |
DateTime::FromTimeT | , | ||
1 | , | ||
2 | |||
) |
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS | ( | SubscriptionSubscribeDataChange_stubs | , |
Subscription::SubscribeDataChange | , | ||
1 | , | ||
2 | |||
) |
BOOST_PYTHON_MODULE | ( | opcua | ) |
Definition at line 275 of file py_opcua_module.cpp.
static boost::shared_ptr<DataValue> DataValue_constructor1 | ( | const object & | obj, |
VariantType | vtype | ||
) | [static] |
Definition at line 193 of file py_opcua_module.cpp.
static uint16_t DataValue_get_server_picoseconds | ( | const DataValue & | self | ) | [static] |
Definition at line 226 of file py_opcua_module.cpp.
static DateTime DataValue_get_server_timestamp | ( | const DataValue & | self | ) | [static] |
Definition at line 220 of file py_opcua_module.cpp.
static uint16_t DataValue_get_source_picoseconds | ( | const DataValue & | self | ) | [static] |
Definition at line 214 of file py_opcua_module.cpp.
static DateTime DataValue_get_source_timestamp | ( | const DataValue & | self | ) | [static] |
Definition at line 208 of file py_opcua_module.cpp.
static StatusCode DataValue_get_status | ( | const DataValue & | self | ) | [static] |
Definition at line 202 of file py_opcua_module.cpp.
static object DataValue_get_value | ( | const DataValue & | self | ) | [static] |
Definition at line 196 of file py_opcua_module.cpp.
static void DataValue_set_server_picoseconds | ( | DataValue & | self, |
uint16_t | ps | ||
) | [static] |
Definition at line 229 of file py_opcua_module.cpp.
static void DataValue_set_server_timestamp | ( | DataValue & | self, |
const DateTime & | dt | ||
) | [static] |
Definition at line 223 of file py_opcua_module.cpp.
static void DataValue_set_source_picoseconds | ( | DataValue & | self, |
uint16_t | ps | ||
) | [static] |
Definition at line 217 of file py_opcua_module.cpp.
static void DataValue_set_source_timestamp | ( | DataValue & | self, |
const DateTime & | dt | ||
) | [static] |
Definition at line 211 of file py_opcua_module.cpp.
static void DataValue_set_status | ( | DataValue & | self, |
const StatusCode & | sc | ||
) | [static] |
Definition at line 205 of file py_opcua_module.cpp.
static void DataValue_set_value | ( | DataValue & | self, |
const object & | obj, | ||
VariantType | vtype | ||
) | [static] |
Definition at line 199 of file py_opcua_module.cpp.
static boost::shared_ptr<DateTime> makeOpcUaDateTime | ( | const boost::python::object & | bobj | ) | [static] |
Definition at line 83 of file py_opcua_module.cpp.
static void Node_SetValue | ( | Node & | self, |
const object & | obj, | ||
VariantType | vtype | ||
) | [static] |
Definition at line 237 of file py_opcua_module.cpp.
static boost::shared_ptr<NodeId> NodeId_constructor | ( | const std::string & | encodedNodeId | ) | [static] |
Definition at line 168 of file py_opcua_module.cpp.
static object NodeId_GetIdentifier | ( | const NodeId & | self | ) | [static] |
Definition at line 171 of file py_opcua_module.cpp.
static boost::python::object ToPyDateTime | ( | const DateTime & | self | ) | [static] |
Definition at line 54 of file py_opcua_module.cpp.
static uint64_t ToWinEpoch | ( | PyObject * | pydate | ) | [static] |
Definition at line 72 of file py_opcua_module.cpp.
static boost::shared_ptr<Subscription> UaClient_CreateSubscription | ( | UaClient & | self, |
uint | period, | ||
PySubscriptionHandler & | callback | ||
) | [static] |
Definition at line 244 of file py_opcua_module.cpp.
static Node UaClient_GetNode | ( | UaClient & | self, |
ObjectId | objectid | ||
) | [static] |
Definition at line 250 of file py_opcua_module.cpp.
static boost::shared_ptr<Subscription> UaServer_CreateSubscription | ( | UaServer & | self, |
uint | period, | ||
PySubscriptionHandler & | callback | ||
) | [static] |
Definition at line 259 of file py_opcua_module.cpp.
static Node UaServer_GetNode | ( | UaServer & | self, |
ObjectId | objectid | ||
) | [static] |
Definition at line 265 of file py_opcua_module.cpp.