28 #ifndef DBUS_CONVERSION_H_
29 #define DBUS_CONVERSION_H_
34 #include <dbus-cpp/dbus.h>
36 #include <dbus-c++/dbus.h>
50 std::map<std::string,variant>
toStdMap(
const std::map<std::string,DBus::Variant> &src );
51 std::map<std::string,DBus::Variant>
fromStdMap(
const std::map<std::string,variant> &src );
57 std::vector<double> result(other.
nelements( ));
58 for (
unsigned int x=0; x < result.size(); ++x)
59 result[x] = (
double) other[x];
A 1-D Specialization of the Array class.
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
casacore::Record toRecord(const std::map< std::string, DBus::Variant > &mapIn)
void show(const variant &v)
std::map< std::string, variant > toStdMap(const std::map< std::string, DBus::Variant > &src)
todo: o create python to/from record functions o implement compare() o implement record_to_string() o...
std::vector< double > af(const casacore::Vector< t > &other)
DBus::Variant fromVariant(const variant &src)
variant toVariant(const DBus::Variant &src)
A hierarchical collection of named fields of various types.
std::map< std::string, DBus::Variant > fromRecord(const casacore::Record &record)
std::map< std::string, DBus::Variant > fromStdMap(const std::map< std::string, variant > &src)