[pytango] 42/483: made AttributeInfo(Ex) copiable; made all members readwrite

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.

commit a6aad1315e85429e9611e67a8f45a8b0aca30561
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date:   Fri Sep 9 11:27:37 2011 +0000

    made AttributeInfo(Ex) copiable; made all members readwrite
    
    git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@17852 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
 src/attribute_info.cpp          |  3 ++-
 src/attribute_info_ex.cpp       |  1 +
 src/device_attribute_config.cpp | 13 +++++++------
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/attribute_info.cpp b/src/attribute_info.cpp
index 812e603..bf00cc0 100644
--- a/src/attribute_info.cpp
+++ b/src/attribute_info.cpp
@@ -30,6 +30,7 @@ void export_attribute_info()
 {
     class_<Tango::AttributeInfo, bases<Tango::DeviceAttributeConfig> >
         ("AttributeInfo")
-        .def_readonly("disp_level", &Tango::AttributeInfo::disp_level)
+        .def(init<const Tango::AttributeInfoEx&>())
+        .def_readwrite("disp_level", &Tango::AttributeInfo::disp_level)
     ;
 }
diff --git a/src/attribute_info_ex.cpp b/src/attribute_info_ex.cpp
index 43b7437..296f07c 100644
--- a/src/attribute_info_ex.cpp
+++ b/src/attribute_info_ex.cpp
@@ -30,6 +30,7 @@ void export_attribute_info_ex()
 {
     class_<Tango::AttributeInfoEx, bases<Tango::AttributeInfo> >
         ("AttributeInfoEx")
+        .def(init<const Tango::AttributeInfoEx&>())
         .def_readwrite("alarms", &Tango::AttributeInfoEx::alarms)
         .def_readwrite("events", &Tango::AttributeInfoEx::events)
         .def_readwrite("sys_extensions", &Tango::AttributeInfoEx::sys_extensions)
diff --git a/src/device_attribute_config.cpp b/src/device_attribute_config.cpp
index 93dcd35..cd9b87b 100644
--- a/src/device_attribute_config.cpp
+++ b/src/device_attribute_config.cpp
@@ -29,12 +29,13 @@ using namespace boost::python;
 void export_device_attribute_config()
 {
     class_<Tango::DeviceAttributeConfig>("DeviceAttributeConfig")
-        .def_readonly("name", &Tango::DeviceAttributeConfig::name)
-        .def_readonly("writable", &Tango::DeviceAttributeConfig::writable)
-        .def_readonly("data_format", &Tango::DeviceAttributeConfig::data_format)
-        .def_readonly("data_type", &Tango::DeviceAttributeConfig::data_type)
-        .def_readonly("max_dim_x", &Tango::DeviceAttributeConfig::max_dim_x)
-        .def_readonly("max_dim_y", &Tango::DeviceAttributeConfig::max_dim_y)
+        .def(init<const Tango::AttributeInfoEx&>())
+        .def_readwrite("name", &Tango::DeviceAttributeConfig::name)
+        .def_readwrite("writable", &Tango::DeviceAttributeConfig::writable)
+        .def_readwrite("data_format", &Tango::DeviceAttributeConfig::data_format)
+        .def_readwrite("data_type", &Tango::DeviceAttributeConfig::data_type)
+        .def_readwrite("max_dim_x", &Tango::DeviceAttributeConfig::max_dim_x)
+        .def_readwrite("max_dim_y", &Tango::DeviceAttributeConfig::max_dim_y)
         .def_readwrite("description", &Tango::DeviceAttributeConfig::description)
         .def_readwrite("label", &Tango::DeviceAttributeConfig::label)
         .def_readwrite("unit", &Tango::DeviceAttributeConfig::unit)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git



More information about the debian-science-commits mailing list