casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QtDBusXML.h
Go to the documentation of this file.
1 //# QtDBusXML.h: XML scheme to be used with CASA's Qt DBus communication.
2 //# Copyright (C) 2009
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id: $
27 #ifndef QTDBUSXML_H_
28 #define QTDBUSXML_H_
29 
30 #include <casa/Containers/Record.h>
31 
32 #include <QDomDocument>
33 #include <QDBusArgument>
34 #include <QMetaType>
35 
36 namespace casa {
37 
38 // Subclass of QDomDocument that represents an XML scheme that is to be used
39 // with CASA's Qt dbus communication.
40 // <casa-dbus>
41 // <time>[TIMESTAMP]</time>
42 // <from>[NAME]</from>
43 // <to>[NAME]</to>
44 // <method name="[METHOD]" async="[ISASYNC]">
45 // <param name="[NAME]" type="[TYPE]">[VALUE]</param>
46 // ...
47 // </method>
48 // <returned type="[TYPE]">[VALUE]</returned>
49 // </casa-dbus>
50 // Currently supported types for parameters and returned values:
51 // bool, int, casacore::uInt, double, casacore::String, casacore::Record, casacore::Array<casacore::Bool> and
52 // casacore::Array<casacore::Int>, and Records with these types.
53 // For a discussion of what these fields mean, see the documentation for
54 // QtDBusXmlApp.
55 class QtDBusXML {
56 public:
57  // Static Methods //
58 
59  // Constructs and returns an XML message using the given parameters. Only
60  // uses the non-empty values. Sets the time to the current.
61  // <group>
63  const casacore::String& to = "", const casacore::String& methodName = "",
65  const casacore::Record& retValue = casacore::Record()) {
66  return constructXML(QString(from.c_str()), QString(to.c_str()),
68  retValue); }
69  static QtDBusXML constructXML(const QString& from = "",
70  const QString& to = "", const QString& methodName = "",
72  const casacore::Record& retValue = casacore::Record());
73  // </group>
74 
75  // Constructs and returns an XML message from the given XML string.
76  // <group>
77  static QtDBusXML fromString(const casacore::String& xmlStr) {
78  return fromString(QString(xmlStr.c_str())); }
79  static QtDBusXML fromString(const QString& xmlStr);
80  // </group>
81 
82  // Reads the values from the given XML message into the given parameters
83  // which are not NULL.
84  // <group>
85  static void extractXML(const QtDBusXML& xml, casacore::String* time = NULL,
87  casacore::Record* methodParams = NULL, casacore::Record* retValue = NULL) {
88  QString* qtime = NULL, *qfrom = NULL, *qto = NULL, *qmethodName = NULL;
89  if(time != NULL) qtime = new QString();
90  if(from != NULL) qfrom = new QString();
91  if(to != NULL) qto = new QString();
92  if(methodName != NULL) qmethodName = new QString();
93  extractXML(xml, qtime, qfrom, qto, qmethodName, methodParams,retValue);
94  if(time != NULL) { *time = qtime->toStdString(); delete qtime; }
95  if(from != NULL) { *from = qfrom->toStdString(); delete qfrom; }
96  if(to != NULL) { *to = qto->toStdString(); delete qto; }
97  if(methodName != NULL) { *methodName = qmethodName->toStdString();
98  delete qmethodName; }
99  }
100  static void extractXML(const QtDBusXML& xml, QString* time = NULL,
101  QString* from = NULL, QString* to = NULL, QString* methodName=NULL,
102  casacore::Record* methodParams = NULL, casacore::Record* retValue = NULL);
103  // </group>
104 
105 
106  // Non-Static Methods //
107 
108  // Constructor.
109  QtDBusXML();
110 
111  // Copy constructor, see operator=().
112  QtDBusXML(const QtDBusXML& copy);
113 
114  // Destructor.
115  virtual ~QtDBusXML();
116 
117 
118  // Gets the value of the time tag, or an empty string if there is none.
119  // <group>
120  casacore::String time() const { return qtime().toStdString(); }
121  QString qtime() const;
122  // </group>
123 
124  // Sets the time tag to the current time.
125  void setTime();
126 
127  // Gets/Sets the from tag.
128  // <group>
129  casacore::String from() const { return qfrom().toStdString(); }
130  QString qfrom() const;
131  void setFrom(const casacore::String& value) { setFrom(QString(value.c_str())); }
132  void setFrom(const QString& value);
133  // </group>
134 
135  // Gets/Sets the to tag.
136  // <group>
137  casacore::String to() const { return qto().toStdString(); }
138  QString qto() const;
139  void setTo(const casacore::String& value) { setTo(QString(value.c_str())); }
140  void setTo(const QString& value);
141  // </group>
142 
143  // Gets/Sets the method name and whether the method call is asynchronous or
144  // not (default is false).
145  // <group>
146  casacore::String methodName() const { return qmethodName().toStdString(); }
147  QString qmethodName() const;
148  bool methodIsAsync() const;
149  void setMethodName(const casacore::String& value, bool isAsync = false) {
150  setMethodName(QString(value.c_str()), isAsync); }
151  void setMethodName(const QString& value, bool isAsync = false);
152  void setMethodIsAsync(bool value);
153  // </group>
154 
155  // Returns the type of the method parameter with the given name, or an
156  // empty string if there is none.
157  // <group>
159  return qmethodParamType(QString(paramName.c_str())).toStdString(); }
160  QString qmethodParamType(const QString& paramName) const;
161  // </group>
162 
163  // Returns whether the method parameter with the given name is the
164  // specified type or not.
165  // <group>
166  bool methodParamIsBool(const casacore::String& paramName) const;
167  bool methodParamIsInt(const casacore::String& paramName) const;
168  bool methodParamIsUInt(const casacore::String& paramName) const;
169  bool methodParamIsDouble(const casacore::String& paramName) const;
170  bool methodParamIsString(const casacore::String& paramName) const;
171  bool methodParamIsRecord(const casacore::String& paramName) const;
172  bool methodParamIsArrayBool(const casacore::String& paramName) const;
173  bool methodParamIsArrayInt(const casacore::String& paramName) const;
174  // </group>
175 
176  // Returns the value of the method parameter with the given name as the
177  // specified type. Is invalid if that parameter is not of the requested
178  // type. Note: the value can always be returned as a string
179  // representation.
180  // <group>
181  bool methodParamBool(const casacore::String& paramName) const {
182  return methodParamBool(QString(paramName.c_str())); }
183  bool methodParamBool(const QString& paramName) const;
184  int methodParamInt(const casacore::String& paramName) const {
185  return methodParamInt(QString(paramName.c_str())); }
186  int methodParamInt(const QString& paramName) const;
188  return methodParamUInt(QString(paramName.c_str())); }
189  casacore::uInt methodParamUInt(const QString& paramName) const;
190  double methodParamDouble(const casacore::String& paramName) const {
191  return methodParamDouble(QString(paramName.c_str())); }
192  double methodParamDouble(const QString& paramName) const;
194  return methodParamQString(QString(paramName.c_str())).toStdString(); }
195  QString methodParamQString(const QString& paramName) const;
197  return methodParamRecord(QString(paramName.c_str())); }
198  casacore::Record methodParamRecord(const QString& paramName) const;
200  return methodParamArrayBool(QString(paramName.c_str())); }
201  casacore::Array<casacore::Bool> methodParamArrayBool(const QString& paramName) const;
203  return methodParamArrayInt(QString(paramName.c_str())); }
204  casacore::Array<casacore::Int> methodParamArrayInt(const QString& paramName) const;
205  // </group>
206 
207  // Sets the parameter with the given name to the given value (and
208  // associated type).
209  // <group>
210  void setMethodParam(const casacore::String& paramName, bool value) {
211  setMethodParam(QString(paramName.c_str()), value); }
212  void setMethodParam(const QString& paramName, bool value);
213  void setMethodParam(const casacore::String& paramName, int value) {
214  setMethodParam(QString(paramName.c_str()), value); }
215  void setMethodParam(const QString& paramName, int value);
217  setMethodParam(QString(paramName.c_str()), value); }
218  void setMethodParam(const QString& paramName, casacore::uInt value);
219  void setMethodParam(const casacore::String& paramName, double value) {
220  setMethodParam(QString(paramName.c_str()), value); }
221  void setMethodParam(const QString& paramName, double value);
222  void setMethodParam(const casacore::String& paramName, const casacore::String& value) {
223  setMethodParam(QString(paramName.c_str()), QString(value.c_str())); }
224  void setMethodParam(const QString& paramName, const QString& value);
225  void setMethodParam(const casacore::String& paramName, const casacore::Record& value) {
226  setMethodParam(QString(paramName.c_str()), value); }
227  void setMethodParam(const QString& paramName, const casacore::Record& value);
229  setMethodParam(QString(paramName.c_str()), value); }
230  void setMethodParam(const QString& paramName, const casacore::Array<bool>& value);
232  setMethodParam(QString(paramName.c_str()), value); }
233  void setMethodParam(const QString& paramName, const casacore::Array<int>& value);
234  // </group>
235 
236  // Gets/Sets all method parameter values as a Record.
237  // <group>
239  void setMethodParams(const casacore::Record& parameters);
240  // </group>
241 
242  // Returns whether or not a returned value was set.
243  bool returnedSet() const { return !qreturnedType().isEmpty(); }
244 
245  // Returns the type of the returned value, or empty string for none.
246  // <group>
247  casacore::String returnedType() const { return qreturnedType().toStdString(); }
248  QString qreturnedType() const;
249  // </group>
250 
251  // Returns whether the returned value is the specified type or not.
252  // <group>
253  bool returnedIsBool() const;
254  bool returnedIsInt() const;
255  bool returnedIsUInt() const;
256  bool returnedIsDouble() const;
257  bool returnedIsString() const;
258  bool returnedIsRecord() const;
259  bool returnedIsArrayBool() const;
260  bool returnedIsArrayInt() const;
261  // </group>
262 
263  // Returns the returned value as the specified type. Is invalid if that
264  // parameter is not of the requested type. Note: the value can always be
265  // returned as a string representation.
266  // <group>
267  bool returnedBool() const;
268  int returnedInt() const;
270  double returnedDouble() const;
271  casacore::String returnedString() const { return returnedQString().toStdString(); }
272  QString returnedQString() const;
276  // </group>
277 
278  // Sets the returned value to the given value (and associated type).
279  // <group>
280  void setReturnedValue(bool value);
281  void setReturnedValue(int value);
283  void setReturnedValue(double value);
285  setReturnedValue(QString(value.c_str())); }
286  void setReturnedValue(const QString& value);
290  // </group>
291 
292  // Gets/Sets the returned value as a record. ONLY the first field is used.
293  // <group>
295  void setReturnedValueRec(const casacore::Record& retValue);
296  // </group>
297 
298 
299  // Returns the whole XML as a string.
300  // <group>
301  casacore::String toXMLString() const { return toXMLQString().toStdString(); }
302  QString toXMLQString() const;
303  // </group>
304 
305  // Sets the whole XML as a string, and returns whether the operation
307  // <group>
309  return fromXMLString(QString(value.c_str())); }
310  bool fromXMLString(const QString& value);
311  // </group>
312 
313  // Returns the underlying QDomDocument.
314  // <group>
315  QDomDocument& domDocument();
316  const QDomDocument& domDocument() const;
317  // </group>
318 
319 
320  // Copy operator.
322 
323 private:
324  // XML document.
325  QDomDocument itsXML_;
326 
327 
328  // Initialize object; meant to be called from constructor.
329  void initialize();
330 
331  // Helper method for elemChildText().
332  QString elemChildText(const QString& name) const {
333  return elemChildText(itsXML_, name, false); }
334 
335  // Helper method for setElemChildText().
336  void setElemChildText(const QString& name, const QString& value) {
337  setElemChildText(itsXML_, name, value, true); }
338 
339  // Helper method that returns the element for the method parameter with the
340  // given name, or a null element if it is not. See elemChild().
341  QDomElement methodParam(const QString& paramName,
342  bool createIfAbsent = false) const;
343 
344  // Helper method for setting the method parameter values.
345  void setMethodParam(const QString& name, const QString& type,
346  const QString& value);
347 
348  // Helper method for setting the returned value.
349  void setReturnedValue(const QString& type, const QString& value);
350 
351 
352  // Static //
353 
354  // Converts between QStrings and bools.
355  // <group>
356  static bool qstringToBool(const QString& value);
357  static QString qstringFromBool(bool value);
358  // </group>
359 
360  // Returns the child of the given element with the given tag name. If
361  // createIfAbsent is true, then the element will be created and appended if
362  // it is not present; otherwise, the returned element will be null if not
363  // present. If the given element is null, a null element is returned.
364  // <group>
365  static QDomElement elemChild(QDomDocument doc, const QString& name,
366  bool createIfAbsent = false) {
367  return elemChild(doc.documentElement(), name, createIfAbsent); }
368  static QDomElement elemChild(QDomElement elem, const QString& name,
369  bool createIfAbsent = false);
370  // </group>
371 
372  // Returns the text value of the child of the given element with the given
373  // tag name. See elemChild().
374  // <group>
375  static QString elemChildText(QDomDocument doc, const QString& name,
376  bool createIfAbsent = false) {
377  return elemChildText(doc.documentElement(), name, createIfAbsent); }
378  static QString elemChildText(QDomElement elem, const QString& name,
379  bool createIfAbsent = false) {
380  return elemChild(elem, name, createIfAbsent).text();
381  }
382  // </group>
383 
384  // Sets the text value of the child of the given element with the given tag
385  // name to the given value. See elemChild().
386  // <group>
387  static void setElemChildText(QDomDocument doc, const QString& name,
388  const QString& value, bool createIfAbsent = false) {
389  setElemChildText(doc.documentElement(), name, value, createIfAbsent); }
390  static void setElemChildText(QDomElement elem, const QString& name,
391  const QString& value, bool createIfAbsent = false) {
392  setElemText(elemChild(elem, name, createIfAbsent), value); }
393  // </group>
394 
395  // Sets the text value of the given element (if it is not null) to the
396  // given text.
397  static void setElemText(QDomElement elem, const QString& text);
398 
399  // Converts between a QDomElement and casacore::Record for values.
400  // <group>
401  static casacore::Record elemToRecord(QDomElement value);
402  static void elemToRecord(casacore::Record& rec, QDomElement value);
403  static void elemFromRecord(QDomElement elem, const casacore::Record& value);
404  // </group>
405  // Converts between a QDomElement and casacore::Bool casacore::Array for values.
406  // <group>
408  static void elemFromArrayBool(QDomElement elem, const casacore::Array<casacore::Bool>& value);
409  // </group>
410  // Converts between a QDomElement and casacore::Int casacore::Array for values.
411  // <group>
413  static void elemFromArrayInt(QDomElement elem, const casacore::Array<casacore::Int>& value);
414  // </group>
415 };
416 
417 }
418 
419 #endif /* QTDBUSXML_H_ */
bool methodIsAsync() const
bool returnedIsArrayBool() const
casacore::Record returnedValue() const
Gets/Sets the returned value as a record.
bool returnedIsInt() const
QString qfrom() const
virtual ~QtDBusXML()
Destructor.
static void extractXML(const QtDBusXML &xml, casacore::String *time=NULL, casacore::String *from=NULL, casacore::String *to=NULL, casacore::String *methodName=NULL, casacore::Record *methodParams=NULL, casacore::Record *retValue=NULL)
Reads the values from the given XML message into the given parameters which are not NULL...
Definition: QtDBusXML.h:85
void setMethodName(const casacore::String &value, bool isAsync=false)
Definition: QtDBusXML.h:149
static void elemFromArrayBool(QDomElement elem, const casacore::Array< casacore::Bool > &value)
casacore::String to() const
Gets/Sets the to tag.
Definition: QtDBusXML.h:137
StatsData< AccumType > copy(const StatsData< AccumType > &stats)
static QtDBusXML fromString(const casacore::String &xmlStr)
Constructs and returns an XML message from the given XML string.
Definition: QtDBusXML.h:77
static void elemFromArrayInt(QDomElement elem, const casacore::Array< casacore::Int > &value)
QString elemChildText(const QString &name) const
Helper method for elemChildText().
Definition: QtDBusXML.h:332
void initialize()
Initialize object; meant to be called from constructor.
void setElemChildText(const QString &name, const QString &value)
Helper method for setElemChildText().
Definition: QtDBusXML.h:336
Subclass of QDomDocument that represents an XML scheme that is to be used with CASA&#39;s Qt dbus communi...
Definition: QtDBusXML.h:55
bool methodParamIsArrayInt(const casacore::String &paramName) const
QString qto() const
bool methodParamIsInt(const casacore::String &paramName) const
QDomDocument & domDocument()
Returns the underlying QDomDocument.
QDomElement methodParam(const QString &paramName, bool createIfAbsent=false) const
Helper method that returns the element for the method parameter with the given name, or a null element if it is not.
virtual Type type()
Return the type enum.
bool returnedSet() const
Returns whether or not a returned value was set.
Definition: QtDBusXML.h:243
bool fromXMLString(const casacore::String &value)
Sets the whole XML as a string, and returns whether the operation.
Definition: QtDBusXML.h:308
casacore::String methodParamType(const casacore::String &paramName) const
Returns the type of the method parameter with the given name, or an empty string if there is none...
Definition: QtDBusXML.h:158
bool returnedIsArrayInt() const
casacore::Record returnedRecord() const
static void setElemChildText(QDomElement elem, const QString &name, const QString &value, bool createIfAbsent=false)
Definition: QtDBusXML.h:390
static bool qstringToBool(const QString &value)
Static //.
casacore::uInt methodParamUInt(const casacore::String &paramName) const
Definition: QtDBusXML.h:187
void setTime()
Sets the time tag to the current time.
double returnedDouble() const
int methodParamInt(const casacore::String &paramName) const
Definition: QtDBusXML.h:184
static QtDBusXML constructXML(const casacore::String &from="", const casacore::String &to="", const casacore::String &methodName="", bool methodIsAsync=false, const casacore::Record &methodParams=casacore::Record(), const casacore::Record &retValue=casacore::Record())
Static Methods //.
Definition: QtDBusXML.h:62
void setFrom(const casacore::String &value)
Definition: QtDBusXML.h:131
void setMethodIsAsync(bool value)
void setMethodParam(const casacore::String &paramName, double value)
Definition: QtDBusXML.h:219
static casacore::Array< casacore::Int > elemToArrayInt(QDomElement value)
Converts between a QDomElement and casacore::Int casacore::Array for values.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
QString methodParamQString(const QString &paramName) const
bool methodParamIsUInt(const casacore::String &paramName) const
double methodParamDouble(const casacore::String &paramName) const
Definition: QtDBusXML.h:190
casacore::String returnedString() const
Definition: QtDBusXML.h:271
casacore::Record methodParams() const
Gets/Sets all method parameter values as a Record.
void setMethodParam(const casacore::String &paramName, const casacore::Record &value)
Definition: QtDBusXML.h:225
casacore::Array< int > returnedArrayInt() const
QDomDocument itsXML_
XML document.
Definition: QtDBusXML.h:325
bool returnedIsBool() const
Returns whether the returned value is the specified type or not.
QtDBusXML()
Non-Static Methods //.
void setReturnedValue(const casacore::String &value)
Definition: QtDBusXML.h:284
static casacore::Record elemToRecord(QDomElement value)
Converts between a QDomElement and casacore::Record for values.
casacore::Array< casacore::Bool > methodParamArrayBool(const casacore::String &paramName) const
Definition: QtDBusXML.h:199
QString toXMLQString() const
bool returnedIsRecord() const
void setMethodParam(const casacore::String &paramName, int value)
Definition: QtDBusXML.h:213
bool methodParamIsString(const casacore::String &paramName) const
bool returnedIsUInt() const
void setTo(const casacore::String &value)
Definition: QtDBusXML.h:139
void setReturnedValueRec(const casacore::Record &retValue)
bool methodParamIsBool(const casacore::String &paramName) const
Returns whether the method parameter with the given name is the specified type or not...
casacore::String from() const
Gets/Sets the from tag.
Definition: QtDBusXML.h:129
void setReturnedValue(bool value)
Sets the returned value to the given value (and associated type).
static QString elemChildText(QDomElement elem, const QString &name, bool createIfAbsent=false)
Definition: QtDBusXML.h:378
bool methodParamIsDouble(const casacore::String &paramName) const
const Char * c_str() const
Get char array.
Definition: String.h:555
casacore::String methodName() const
Gets/Sets the method name and whether the method call is asynchronous or not (default is false)...
Definition: QtDBusXML.h:146
bool methodParamIsRecord(const casacore::String &paramName) const
static QString qstringFromBool(bool value)
bool returnedIsString() const
void setMethodParam(const casacore::String &paramName, const casacore::Array< bool > &value)
Definition: QtDBusXML.h:228
static QString elemChildText(QDomDocument doc, const QString &name, bool createIfAbsent=false)
Returns the text value of the child of the given element with the given tag name. ...
Definition: QtDBusXML.h:375
A hierarchical collection of named fields of various types.
Definition: Record.h:180
QString qtime() const
casacore::String toXMLString() const
Returns the whole XML as a string.
Definition: QtDBusXML.h:301
void setMethodParam(const casacore::String &paramName, const casacore::String &value)
Definition: QtDBusXML.h:222
int returnedInt() const
QString qmethodName() const
void setMethodParam(const casacore::String &paramName, casacore::uInt value)
Definition: QtDBusXML.h:216
casacore::String methodParamString(const casacore::String &paramName) const
Definition: QtDBusXML.h:193
QString qreturnedType() const
static void elemFromRecord(QDomElement elem, const casacore::Record &value)
static void setElemText(QDomElement elem, const QString &text)
Sets the text value of the given element (if it is not null) to the given text.
bool returnedBool() const
Returns the returned value as the specified type.
bool methodParamIsArrayBool(const casacore::String &paramName) const
QString returnedQString() const
casacore::uInt returnedUInt() const
String: the storage and methods of handling collections of characters.
Definition: String.h:223
static casacore::Array< casacore::Bool > elemToArrayBool(QDomElement value)
Converts between a QDomElement and casacore::Bool casacore::Array for values.
casacore::String time() const
Gets the value of the time tag, or an empty string if there is none.
Definition: QtDBusXML.h:120
void setMethodParam(const casacore::String &paramName, const casacore::Array< int > &value)
Definition: QtDBusXML.h:231
void setMethodParams(const casacore::Record &parameters)
casacore::String returnedType() const
Returns the type of the returned value, or empty string for none.
Definition: QtDBusXML.h:247
casacore::Record methodParamRecord(const casacore::String &paramName) const
Definition: QtDBusXML.h:196
static QDomElement elemChild(QDomDocument doc, const QString &name, bool createIfAbsent=false)
Returns the child of the given element with the given tag name.
Definition: QtDBusXML.h:365
void setMethodParam(const casacore::String &paramName, bool value)
Sets the parameter with the given name to the given value (and associated type).
Definition: QtDBusXML.h:210
casacore::Array< bool > returnedArrayBool() const
QtDBusXML & operator=(const QtDBusXML &copy)
Copy operator.
static void setElemChildText(QDomDocument doc, const QString &name, const QString &value, bool createIfAbsent=false)
Sets the text value of the child of the given element with the given tag name to the given value...
Definition: QtDBusXML.h:387
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
bool returnedIsDouble() const
casacore::Array< casacore::Int > methodParamArrayInt(const casacore::String &paramName) const
Definition: QtDBusXML.h:202
unsigned int uInt
Definition: aipstype.h:51
QString qmethodParamType(const QString &paramName) const
bool methodParamBool(const casacore::String &paramName) const
Returns the value of the method parameter with the given name as the specified type.
Definition: QtDBusXML.h:181