casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
casa::QtDBusXML Class Reference

Subclass of QDomDocument that represents an XML scheme that is to be used with CASA's Qt dbus communication. More...

#include <QtDBusXML.h>

Public Member Functions

 QtDBusXML ()
 Non-Static Methods //. More...
 
 QtDBusXML (const QtDBusXML &copy)
 Copy constructor, see operator=(). More...
 
virtual ~QtDBusXML ()
 Destructor. More...
 
casacore::String time () const
 Gets the value of the time tag, or an empty string if there is none. More...
 
QString qtime () const
 
void setTime ()
 Sets the time tag to the current time. More...
 
casacore::String from () const
 Gets/Sets the from tag. More...
 
QString qfrom () const
 
void setFrom (const casacore::String &value)
 
void setFrom (const QString &value)
 
casacore::String to () const
 Gets/Sets the to tag. More...
 
QString qto () const
 
void setTo (const casacore::String &value)
 
void setTo (const QString &value)
 
casacore::String methodName () const
 Gets/Sets the method name and whether the method call is asynchronous or not (default is false). More...
 
QString qmethodName () const
 
bool methodIsAsync () const
 
void setMethodName (const casacore::String &value, bool isAsync=false)
 
void setMethodName (const QString &value, bool isAsync=false)
 
void setMethodIsAsync (bool value)
 
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. More...
 
QString qmethodParamType (const QString &paramName) const
 
bool methodParamIsBool (const casacore::String &paramName) const
 Returns whether the method parameter with the given name is the specified type or not. More...
 
bool methodParamIsInt (const casacore::String &paramName) const
 
bool methodParamIsUInt (const casacore::String &paramName) const
 
bool methodParamIsDouble (const casacore::String &paramName) const
 
bool methodParamIsString (const casacore::String &paramName) const
 
bool methodParamIsRecord (const casacore::String &paramName) const
 
bool methodParamIsArrayBool (const casacore::String &paramName) const
 
bool methodParamIsArrayInt (const casacore::String &paramName) const
 
bool methodParamBool (const casacore::String &paramName) const
 Returns the value of the method parameter with the given name as the specified type. More...
 
bool methodParamBool (const QString &paramName) const
 
int methodParamInt (const casacore::String &paramName) const
 
int methodParamInt (const QString &paramName) const
 
casacore::uInt methodParamUInt (const casacore::String &paramName) const
 
casacore::uInt methodParamUInt (const QString &paramName) const
 
double methodParamDouble (const casacore::String &paramName) const
 
double methodParamDouble (const QString &paramName) const
 
casacore::String methodParamString (const casacore::String &paramName) const
 
QString methodParamQString (const QString &paramName) const
 
casacore::Record methodParamRecord (const casacore::String &paramName) const
 
casacore::Record methodParamRecord (const QString &paramName) const
 
casacore::Array< casacore::BoolmethodParamArrayBool (const casacore::String &paramName) const
 
casacore::Array< casacore::BoolmethodParamArrayBool (const QString &paramName) const
 
casacore::Array< casacore::IntmethodParamArrayInt (const casacore::String &paramName) const
 
casacore::Array< casacore::IntmethodParamArrayInt (const QString &paramName) const
 
void setMethodParam (const casacore::String &paramName, bool value)
 Sets the parameter with the given name to the given value (and associated type). More...
 
void setMethodParam (const QString &paramName, bool value)
 
void setMethodParam (const casacore::String &paramName, int value)
 
void setMethodParam (const QString &paramName, int value)
 
void setMethodParam (const casacore::String &paramName, casacore::uInt value)
 
void setMethodParam (const QString &paramName, casacore::uInt value)
 
void setMethodParam (const casacore::String &paramName, double value)
 
void setMethodParam (const QString &paramName, double value)
 
void setMethodParam (const casacore::String &paramName, const casacore::String &value)
 
void setMethodParam (const QString &paramName, const QString &value)
 
void setMethodParam (const casacore::String &paramName, const casacore::Record &value)
 
void setMethodParam (const QString &paramName, const casacore::Record &value)
 
void setMethodParam (const casacore::String &paramName, const casacore::Array< bool > &value)
 
void setMethodParam (const QString &paramName, const casacore::Array< bool > &value)
 
void setMethodParam (const casacore::String &paramName, const casacore::Array< int > &value)
 
void setMethodParam (const QString &paramName, const casacore::Array< int > &value)
 
casacore::Record methodParams () const
 Gets/Sets all method parameter values as a Record. More...
 
void setMethodParams (const casacore::Record &parameters)
 
bool returnedSet () const
 Returns whether or not a returned value was set. More...
 
casacore::String returnedType () const
 Returns the type of the returned value, or empty string for none. More...
 
QString qreturnedType () const
 
bool returnedIsBool () const
 Returns whether the returned value is the specified type or not. More...
 
bool returnedIsInt () const
 
bool returnedIsUInt () const
 
bool returnedIsDouble () const
 
bool returnedIsString () const
 
bool returnedIsRecord () const
 
bool returnedIsArrayBool () const
 
bool returnedIsArrayInt () const
 
bool returnedBool () const
 Returns the returned value as the specified type. More...
 
int returnedInt () const
 
casacore::uInt returnedUInt () const
 
double returnedDouble () const
 
casacore::String returnedString () const
 
QString returnedQString () const
 
casacore::Record returnedRecord () const
 
casacore::Array< bool > returnedArrayBool () const
 
casacore::Array< int > returnedArrayInt () const
 
void setReturnedValue (bool value)
 Sets the returned value to the given value (and associated type). More...
 
void setReturnedValue (int value)
 
void setReturnedValue (casacore::uInt value)
 
void setReturnedValue (double value)
 
void setReturnedValue (const casacore::String &value)
 
void setReturnedValue (const QString &value)
 
void setReturnedValue (const casacore::Record &value)
 
void setReturnedValue (const casacore::Array< casacore::Bool > &value)
 
void setReturnedValue (const casacore::Array< casacore::Int > &value)
 
casacore::Record returnedValue () const
 Gets/Sets the returned value as a record. More...
 
void setReturnedValueRec (const casacore::Record &retValue)
 
casacore::String toXMLString () const
 Returns the whole XML as a string. More...
 
QString toXMLQString () const
 
bool fromXMLString (const casacore::String &value)
 Sets the whole XML as a string, and returns whether the operation. More...
 
bool fromXMLString (const QString &value)
 
QDomDocument & domDocument ()
 Returns the underlying QDomDocument. More...
 
const QDomDocument & domDocument () const
 
QtDBusXMLoperator= (const QtDBusXML &copy)
 Copy operator. More...
 

Static Public Member Functions

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 //. More...
 
static QtDBusXML constructXML (const QString &from="", const QString &to="", const QString &methodName="", bool methodIsAsync=false, const casacore::Record &methodParams=casacore::Record(), const casacore::Record &retValue=casacore::Record())
 
static QtDBusXML fromString (const casacore::String &xmlStr)
 Constructs and returns an XML message from the given XML string. More...
 
static QtDBusXML fromString (const QString &xmlStr)
 
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. More...
 
static void extractXML (const QtDBusXML &xml, QString *time=NULL, QString *from=NULL, QString *to=NULL, QString *methodName=NULL, casacore::Record *methodParams=NULL, casacore::Record *retValue=NULL)
 

Private Member Functions

void initialize ()
 Initialize object; meant to be called from constructor. More...
 
QString elemChildText (const QString &name) const
 Helper method for elemChildText(). More...
 
void setElemChildText (const QString &name, const QString &value)
 Helper method for setElemChildText(). More...
 
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. More...
 
void setMethodParam (const QString &name, const QString &type, const QString &value)
 Helper method for setting the method parameter values. More...
 
void setReturnedValue (const QString &type, const QString &value)
 Helper method for setting the returned value. More...
 

Static Private Member Functions

static bool qstringToBool (const QString &value)
 Static //. More...
 
static QString qstringFromBool (bool value)
 
static QDomElement elemChild (QDomDocument doc, const QString &name, bool createIfAbsent=false)
 Returns the child of the given element with the given tag name. More...
 
static QDomElement elemChild (QDomElement elem, const QString &name, bool createIfAbsent=false)
 
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. More...
 
static QString elemChildText (QDomElement elem, const QString &name, bool createIfAbsent=false)
 
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. More...
 
static void setElemChildText (QDomElement elem, const QString &name, const QString &value, bool createIfAbsent=false)
 
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. More...
 
static casacore::Record elemToRecord (QDomElement value)
 Converts between a QDomElement and casacore::Record for values. More...
 
static void elemToRecord (casacore::Record &rec, QDomElement value)
 
static void elemFromRecord (QDomElement elem, const casacore::Record &value)
 
static casacore::Array
< casacore::Bool
elemToArrayBool (QDomElement value)
 Converts between a QDomElement and casacore::Bool casacore::Array for values. More...
 
static void elemFromArrayBool (QDomElement elem, const casacore::Array< casacore::Bool > &value)
 
static casacore::Array
< casacore::Int
elemToArrayInt (QDomElement value)
 Converts between a QDomElement and casacore::Int casacore::Array for values. More...
 
static void elemFromArrayInt (QDomElement elem, const casacore::Array< casacore::Int > &value)
 

Private Attributes

QDomDocument itsXML_
 XML document. More...
 

Detailed Description

Subclass of QDomDocument that represents an XML scheme that is to be used with CASA's Qt dbus communication.

<casa-dbus> <time>[TIMESTAMP]</time> <from>[NAME]</from> <to>[NAME]</to> <method name="[METHOD]" async="[ISASYNC]">

Parameters
[NAME][VALUE]

... </method> <returned type="[TYPE]">[VALUE]</returned> </casa-dbus> Currently supported types for parameters and returned values: bool, int, casacore::uInt, double, casacore::String, casacore::Record, casacore::Array<casacore::Bool> and casacore::Array<casacore::Int>, and Records with these types. For a discussion of what these fields mean, see the documentation for QtDBusXmlApp.

Definition at line 55 of file QtDBusXML.h.

Constructor & Destructor Documentation

casa::QtDBusXML::QtDBusXML ( )

Non-Static Methods //.

Constructor.

casa::QtDBusXML::QtDBusXML ( const QtDBusXML copy)

Copy constructor, see operator=().

virtual casa::QtDBusXML::~QtDBusXML ( )
virtual

Destructor.

Member Function Documentation

static QtDBusXML casa::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() 
)
inlinestatic

Static Methods //.

Constructs and returns an XML message using the given parameters. Only uses the non-empty values. Sets the time to the current.

Definition at line 62 of file QtDBusXML.h.

References casacore::String::c_str(), from(), methodIsAsync(), methodName(), methodParams(), and to().

static QtDBusXML casa::QtDBusXML::constructXML ( const QString &  from = "",
const QString &  to = "",
const QString &  methodName = "",
bool  methodIsAsync = false,
const casacore::Record methodParams = casacore::Record(),
const casacore::Record retValue = casacore::Record() 
)
static
QDomDocument& casa::QtDBusXML::domDocument ( )

Returns the underlying QDomDocument.

const QDomDocument& casa::QtDBusXML::domDocument ( ) const
static QDomElement casa::QtDBusXML::elemChild ( QDomDocument  doc,
const QString &  name,
bool  createIfAbsent = false 
)
inlinestaticprivate

Returns the child of the given element with the given tag name.

If createIfAbsent is true, then the element will be created and appended if it is not present; otherwise, the returned element will be null if not present. If the given element is null, a null element is returned.

Definition at line 365 of file QtDBusXML.h.

References casa::name().

Referenced by elemChildText(), and setElemChildText().

static QDomElement casa::QtDBusXML::elemChild ( QDomElement  elem,
const QString &  name,
bool  createIfAbsent = false 
)
staticprivate
QString casa::QtDBusXML::elemChildText ( const QString &  name) const
inlineprivate

Helper method for elemChildText().

Definition at line 332 of file QtDBusXML.h.

References itsXML_.

Referenced by elemChildText().

static QString casa::QtDBusXML::elemChildText ( QDomDocument  doc,
const QString &  name,
bool  createIfAbsent = false 
)
inlinestaticprivate

Returns the text value of the child of the given element with the given tag name.

See elemChild().

Definition at line 375 of file QtDBusXML.h.

References elemChildText(), and casa::name().

static QString casa::QtDBusXML::elemChildText ( QDomElement  elem,
const QString &  name,
bool  createIfAbsent = false 
)
inlinestaticprivate

Definition at line 378 of file QtDBusXML.h.

References elemChild().

static void casa::QtDBusXML::elemFromArrayBool ( QDomElement  elem,
const casacore::Array< casacore::Bool > &  value 
)
staticprivate
static void casa::QtDBusXML::elemFromArrayInt ( QDomElement  elem,
const casacore::Array< casacore::Int > &  value 
)
staticprivate
static void casa::QtDBusXML::elemFromRecord ( QDomElement  elem,
const casacore::Record value 
)
staticprivate
static casacore::Array<casacore::Bool> casa::QtDBusXML::elemToArrayBool ( QDomElement  value)
staticprivate

Converts between a QDomElement and casacore::Bool casacore::Array for values.

static casacore::Array<casacore::Int> casa::QtDBusXML::elemToArrayInt ( QDomElement  value)
staticprivate

Converts between a QDomElement and casacore::Int casacore::Array for values.

static casacore::Record casa::QtDBusXML::elemToRecord ( QDomElement  value)
staticprivate

Converts between a QDomElement and casacore::Record for values.

static void casa::QtDBusXML::elemToRecord ( casacore::Record rec,
QDomElement  value 
)
staticprivate
static void casa::QtDBusXML::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 
)
inlinestatic

Reads the values from the given XML message into the given parameters which are not NULL.

Definition at line 85 of file QtDBusXML.h.

References from(), methodName(), methodParams(), qfrom(), qmethodName(), qtime(), qto(), time(), and to().

static void casa::QtDBusXML::extractXML ( const QtDBusXML xml,
QString *  time = NULL,
QString *  from = NULL,
QString *  to = NULL,
QString *  methodName = NULL,
casacore::Record methodParams = NULL,
casacore::Record retValue = NULL 
)
static
casacore::String casa::QtDBusXML::from ( ) const
inline

Gets/Sets the from tag.

Definition at line 129 of file QtDBusXML.h.

References qfrom().

Referenced by constructXML(), and extractXML().

static QtDBusXML casa::QtDBusXML::fromString ( const casacore::String xmlStr)
inlinestatic

Constructs and returns an XML message from the given XML string.

Definition at line 77 of file QtDBusXML.h.

References casacore::String::c_str().

static QtDBusXML casa::QtDBusXML::fromString ( const QString &  xmlStr)
static
bool casa::QtDBusXML::fromXMLString ( const casacore::String value)
inline

Sets the whole XML as a string, and returns whether the operation.

succeeded or not.

Definition at line 308 of file QtDBusXML.h.

References casacore::String::c_str().

bool casa::QtDBusXML::fromXMLString ( const QString &  value)
void casa::QtDBusXML::initialize ( )
private

Initialize object; meant to be called from constructor.

bool casa::QtDBusXML::methodIsAsync ( ) const

Referenced by constructXML().

casacore::String casa::QtDBusXML::methodName ( ) const
inline

Gets/Sets the method name and whether the method call is asynchronous or not (default is false).

Definition at line 146 of file QtDBusXML.h.

References qmethodName().

Referenced by constructXML(), and extractXML().

QDomElement casa::QtDBusXML::methodParam ( const QString &  paramName,
bool  createIfAbsent = false 
) const
private

Helper method that returns the element for the method parameter with the given name, or a null element if it is not.

See elemChild().

casacore::Array<casacore::Bool> casa::QtDBusXML::methodParamArrayBool ( const casacore::String paramName) const
inline

Definition at line 199 of file QtDBusXML.h.

References casacore::String::c_str().

casacore::Array<casacore::Bool> casa::QtDBusXML::methodParamArrayBool ( const QString &  paramName) const
casacore::Array<casacore::Int> casa::QtDBusXML::methodParamArrayInt ( const casacore::String paramName) const
inline

Definition at line 202 of file QtDBusXML.h.

References casacore::String::c_str().

casacore::Array<casacore::Int> casa::QtDBusXML::methodParamArrayInt ( const QString &  paramName) const
bool casa::QtDBusXML::methodParamBool ( const casacore::String paramName) const
inline

Returns the value of the method parameter with the given name as the specified type.

Is invalid if that parameter is not of the requested type. Note: the value can always be returned as a string representation.

Definition at line 181 of file QtDBusXML.h.

References casacore::String::c_str().

bool casa::QtDBusXML::methodParamBool ( const QString &  paramName) const
double casa::QtDBusXML::methodParamDouble ( const casacore::String paramName) const
inline

Definition at line 190 of file QtDBusXML.h.

References casacore::String::c_str().

double casa::QtDBusXML::methodParamDouble ( const QString &  paramName) const
int casa::QtDBusXML::methodParamInt ( const casacore::String paramName) const
inline

Definition at line 184 of file QtDBusXML.h.

References casacore::String::c_str().

int casa::QtDBusXML::methodParamInt ( const QString &  paramName) const
bool casa::QtDBusXML::methodParamIsArrayBool ( const casacore::String paramName) const
bool casa::QtDBusXML::methodParamIsArrayInt ( const casacore::String paramName) const
bool casa::QtDBusXML::methodParamIsBool ( const casacore::String paramName) const

Returns whether the method parameter with the given name is the specified type or not.

bool casa::QtDBusXML::methodParamIsDouble ( const casacore::String paramName) const
bool casa::QtDBusXML::methodParamIsInt ( const casacore::String paramName) const
bool casa::QtDBusXML::methodParamIsRecord ( const casacore::String paramName) const
bool casa::QtDBusXML::methodParamIsString ( const casacore::String paramName) const
bool casa::QtDBusXML::methodParamIsUInt ( const casacore::String paramName) const
QString casa::QtDBusXML::methodParamQString ( const QString &  paramName) const

Referenced by methodParamString().

casacore::Record casa::QtDBusXML::methodParamRecord ( const casacore::String paramName) const
inline

Definition at line 196 of file QtDBusXML.h.

References casacore::String::c_str().

casacore::Record casa::QtDBusXML::methodParamRecord ( const QString &  paramName) const
casacore::Record casa::QtDBusXML::methodParams ( ) const

Gets/Sets all method parameter values as a Record.

Referenced by constructXML(), and extractXML().

casacore::String casa::QtDBusXML::methodParamString ( const casacore::String paramName) const
inline

Definition at line 193 of file QtDBusXML.h.

References casacore::String::c_str(), and methodParamQString().

casacore::String casa::QtDBusXML::methodParamType ( const casacore::String paramName) const
inline

Returns the type of the method parameter with the given name, or an empty string if there is none.

Definition at line 158 of file QtDBusXML.h.

References casacore::String::c_str(), and qmethodParamType().

casacore::uInt casa::QtDBusXML::methodParamUInt ( const casacore::String paramName) const
inline

Definition at line 187 of file QtDBusXML.h.

References casacore::String::c_str().

casacore::uInt casa::QtDBusXML::methodParamUInt ( const QString &  paramName) const
QtDBusXML& casa::QtDBusXML::operator= ( const QtDBusXML copy)

Copy operator.

QString casa::QtDBusXML::qfrom ( ) const

Referenced by extractXML(), and from().

QString casa::QtDBusXML::qmethodName ( ) const

Referenced by extractXML(), and methodName().

QString casa::QtDBusXML::qmethodParamType ( const QString &  paramName) const

Referenced by methodParamType().

QString casa::QtDBusXML::qreturnedType ( ) const

Referenced by returnedSet(), and returnedType().

static QString casa::QtDBusXML::qstringFromBool ( bool  value)
staticprivate
static bool casa::QtDBusXML::qstringToBool ( const QString &  value)
staticprivate

Static //.

Converts between QStrings and bools.

QString casa::QtDBusXML::qtime ( ) const

Referenced by extractXML(), and time().

QString casa::QtDBusXML::qto ( ) const

Referenced by extractXML(), and to().

casacore::Array<bool> casa::QtDBusXML::returnedArrayBool ( ) const
casacore::Array<int> casa::QtDBusXML::returnedArrayInt ( ) const
bool casa::QtDBusXML::returnedBool ( ) const

Returns the returned value as the specified type.

Is invalid if that parameter is not of the requested type. Note: the value can always be returned as a string representation.

double casa::QtDBusXML::returnedDouble ( ) const
int casa::QtDBusXML::returnedInt ( ) const
bool casa::QtDBusXML::returnedIsArrayBool ( ) const
bool casa::QtDBusXML::returnedIsArrayInt ( ) const
bool casa::QtDBusXML::returnedIsBool ( ) const

Returns whether the returned value is the specified type or not.

bool casa::QtDBusXML::returnedIsDouble ( ) const
bool casa::QtDBusXML::returnedIsInt ( ) const
bool casa::QtDBusXML::returnedIsRecord ( ) const
bool casa::QtDBusXML::returnedIsString ( ) const
bool casa::QtDBusXML::returnedIsUInt ( ) const
QString casa::QtDBusXML::returnedQString ( ) const

Referenced by returnedString().

casacore::Record casa::QtDBusXML::returnedRecord ( ) const
bool casa::QtDBusXML::returnedSet ( ) const
inline

Returns whether or not a returned value was set.

Definition at line 243 of file QtDBusXML.h.

References qreturnedType().

casacore::String casa::QtDBusXML::returnedString ( ) const
inline

Definition at line 271 of file QtDBusXML.h.

References returnedQString().

casacore::String casa::QtDBusXML::returnedType ( ) const
inline

Returns the type of the returned value, or empty string for none.

Definition at line 247 of file QtDBusXML.h.

References qreturnedType().

casacore::uInt casa::QtDBusXML::returnedUInt ( ) const
casacore::Record casa::QtDBusXML::returnedValue ( ) const

Gets/Sets the returned value as a record.

ONLY the first field is used.

void casa::QtDBusXML::setElemChildText ( const QString &  name,
const QString &  value 
)
inlineprivate

Helper method for setElemChildText().

Definition at line 336 of file QtDBusXML.h.

References itsXML_.

Referenced by setElemChildText().

static void casa::QtDBusXML::setElemChildText ( QDomDocument  doc,
const QString &  name,
const QString &  value,
bool  createIfAbsent = false 
)
inlinestaticprivate

Sets the text value of the child of the given element with the given tag name to the given value.

See elemChild().

Definition at line 387 of file QtDBusXML.h.

References casa::name(), setElemChildText(), and casacore::value().

static void casa::QtDBusXML::setElemChildText ( QDomElement  elem,
const QString &  name,
const QString &  value,
bool  createIfAbsent = false 
)
inlinestaticprivate

Definition at line 390 of file QtDBusXML.h.

References elemChild(), and setElemText().

static void casa::QtDBusXML::setElemText ( QDomElement  elem,
const QString &  text 
)
staticprivate

Sets the text value of the given element (if it is not null) to the given text.

Referenced by setElemChildText().

void casa::QtDBusXML::setFrom ( const casacore::String value)
inline

Definition at line 131 of file QtDBusXML.h.

References casacore::String::c_str(), and setFrom().

Referenced by setFrom().

void casa::QtDBusXML::setFrom ( const QString &  value)
void casa::QtDBusXML::setMethodIsAsync ( bool  value)
void casa::QtDBusXML::setMethodName ( const casacore::String value,
bool  isAsync = false 
)
inline

Definition at line 149 of file QtDBusXML.h.

References casacore::String::c_str().

void casa::QtDBusXML::setMethodName ( const QString &  value,
bool  isAsync = false 
)
void casa::QtDBusXML::setMethodParam ( const casacore::String paramName,
bool  value 
)
inline

Sets the parameter with the given name to the given value (and associated type).

Definition at line 210 of file QtDBusXML.h.

References casacore::String::c_str().

Referenced by setMethodParam().

void casa::QtDBusXML::setMethodParam ( const QString &  paramName,
bool  value 
)
void casa::QtDBusXML::setMethodParam ( const casacore::String paramName,
int  value 
)
inline

Definition at line 213 of file QtDBusXML.h.

References casacore::String::c_str(), and setMethodParam().

void casa::QtDBusXML::setMethodParam ( const QString &  paramName,
int  value 
)
void casa::QtDBusXML::setMethodParam ( const casacore::String paramName,
casacore::uInt  value 
)
inline

Definition at line 216 of file QtDBusXML.h.

References casacore::String::c_str(), and setMethodParam().

void casa::QtDBusXML::setMethodParam ( const QString &  paramName,
casacore::uInt  value 
)
void casa::QtDBusXML::setMethodParam ( const casacore::String paramName,
double  value 
)
inline

Definition at line 219 of file QtDBusXML.h.

References casacore::String::c_str(), and setMethodParam().

void casa::QtDBusXML::setMethodParam ( const QString &  paramName,
double  value 
)
void casa::QtDBusXML::setMethodParam ( const casacore::String paramName,
const casacore::String value 
)
inline

Definition at line 222 of file QtDBusXML.h.

References casacore::String::c_str(), and setMethodParam().

void casa::QtDBusXML::setMethodParam ( const QString &  paramName,
const QString &  value 
)
void casa::QtDBusXML::setMethodParam ( const casacore::String paramName,
const casacore::Record value 
)
inline

Definition at line 225 of file QtDBusXML.h.

References casacore::String::c_str(), and setMethodParam().

void casa::QtDBusXML::setMethodParam ( const QString &  paramName,
const casacore::Record value 
)
void casa::QtDBusXML::setMethodParam ( const casacore::String paramName,
const casacore::Array< bool > &  value 
)
inline

Definition at line 228 of file QtDBusXML.h.

References casacore::String::c_str(), and setMethodParam().

void casa::QtDBusXML::setMethodParam ( const QString &  paramName,
const casacore::Array< bool > &  value 
)
void casa::QtDBusXML::setMethodParam ( const casacore::String paramName,
const casacore::Array< int > &  value 
)
inline

Definition at line 231 of file QtDBusXML.h.

References casacore::String::c_str(), and setMethodParam().

void casa::QtDBusXML::setMethodParam ( const QString &  paramName,
const casacore::Array< int > &  value 
)
void casa::QtDBusXML::setMethodParam ( const QString &  name,
const QString &  type,
const QString &  value 
)
private

Helper method for setting the method parameter values.

void casa::QtDBusXML::setMethodParams ( const casacore::Record parameters)
void casa::QtDBusXML::setReturnedValue ( bool  value)

Sets the returned value to the given value (and associated type).

Referenced by setReturnedValue().

void casa::QtDBusXML::setReturnedValue ( int  value)
void casa::QtDBusXML::setReturnedValue ( casacore::uInt  value)
void casa::QtDBusXML::setReturnedValue ( double  value)
void casa::QtDBusXML::setReturnedValue ( const casacore::String value)
inline

Definition at line 284 of file QtDBusXML.h.

References casacore::String::c_str(), and setReturnedValue().

void casa::QtDBusXML::setReturnedValue ( const QString &  value)
void casa::QtDBusXML::setReturnedValue ( const casacore::Record value)
void casa::QtDBusXML::setReturnedValue ( const casacore::Array< casacore::Bool > &  value)
void casa::QtDBusXML::setReturnedValue ( const casacore::Array< casacore::Int > &  value)
void casa::QtDBusXML::setReturnedValue ( const QString &  type,
const QString &  value 
)
private

Helper method for setting the returned value.

void casa::QtDBusXML::setReturnedValueRec ( const casacore::Record retValue)
void casa::QtDBusXML::setTime ( )

Sets the time tag to the current time.

void casa::QtDBusXML::setTo ( const casacore::String value)
inline

Definition at line 139 of file QtDBusXML.h.

References casacore::String::c_str(), and setTo().

Referenced by setTo().

void casa::QtDBusXML::setTo ( const QString &  value)
casacore::String casa::QtDBusXML::time ( void  ) const
inline

Gets the value of the time tag, or an empty string if there is none.

Definition at line 120 of file QtDBusXML.h.

References qtime().

Referenced by extractXML().

casacore::String casa::QtDBusXML::to ( ) const
inline

Gets/Sets the to tag.

Definition at line 137 of file QtDBusXML.h.

References qto().

Referenced by constructXML(), and extractXML().

QString casa::QtDBusXML::toXMLQString ( ) const

Referenced by toXMLString().

casacore::String casa::QtDBusXML::toXMLString ( ) const
inline

Returns the whole XML as a string.

Definition at line 301 of file QtDBusXML.h.

References toXMLQString().

Member Data Documentation

QDomDocument casa::QtDBusXML::itsXML_
private

XML document.

Definition at line 325 of file QtDBusXML.h.

Referenced by elemChildText(), and setElemChildText().


The documentation for this class was generated from the following file: