rwlogo
HydraExpress 4.6

HydraExpress C++ API Reference Guide


   


Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::CallInfo::ParameterObject Class Reference

Represents operation parameters. Generally not for direct use. More...

#include <rwsf/webservice/CallInfo.h>

List of all members.

Public Member Functions

 ParameterObject ()
 ~ParameterObject ()
 ParameterObject (const rwsf::XmlName &name)
bool operator== (const ParameterObject &obj) const
std::string getValue ()
void setValue (const std::string &value)
void appendValue (const std::string &value)
size_t valueEntries ()
std::string & valueAt (size_t idx)
std::list< std::string >::iterator getValuesBegin ()
std::list< std::string >::iterator getValuesEnd ()

Public Attributes

rwsf::XmlName name_
bool isParameter_
bool isSimple_
bool isAttachment_
std::string type_
rwsf::XmlReader rdr_

Detailed Description

This class specifies the parameter names that request-response or solicit-response operations may require to capture the function signature. Generally, applications do not need to use this class directly.


Constructor & Destructor Documentation

rwsf::CallInfo::ParameterObject::ParameterObject (  ) 

Default constructor.

rwsf::CallInfo::ParameterObject::~ParameterObject (  ) 

Default destructor.

rwsf::CallInfo::ParameterObject::ParameterObject ( const rwsf::XmlName name  ) 

Constructs a parameter object with the value of name.


Member Function Documentation

void rwsf::CallInfo::ParameterObject::appendValue ( const std::string &  value  )  [inline]

Appends value to the existing value(s) in this parameter object.

Note:
This member function is relevant only when using wrapped style with a parameter that is a list of values; in all other cases, the first value only is used.
std::string rwsf::CallInfo::ParameterObject::getValue (  )  [inline]

Returns the parameter object's value. With wrapped style, a vector of values is possible. In this case, the first value in the list is returned.

std::list<std::string>::iterator rwsf::CallInfo::ParameterObject::getValuesBegin (  )  [inline]

Returns an iterator to the beginning of the value list for this paramter object. Note that the existence of more than one value is possible only with the use of wrapped style in which the parameter is a vector of values.

std::list<std::string>::iterator rwsf::CallInfo::ParameterObject::getValuesEnd (  )  [inline]

Returns an iterator to one past the end of the value list for this paramter object.

Note:
The existence of more than one value is possible only with the use of wrapped style in which the parameter is a vector of values.
bool rwsf::CallInfo::ParameterObject::operator== ( const ParameterObject obj  )  const

Returns true if self compares equal to obj, otherwise false.

void rwsf::CallInfo::ParameterObject::setValue ( const std::string &  value  )  [inline]

Sets the value of this parameter object. With wrapped style, a vector of values is possible. In this case, sets the first value in the list.

std::string& rwsf::CallInfo::ParameterObject::valueAt ( size_t  idx  )  [inline]

Returns a value at position idx in the vector. If idx is greater than the vector size, an rwsf::OutOfBoundException is thrown.

size_t rwsf::CallInfo::ParameterObject::valueEntries (  )  [inline]

Returns the number of values in the parameter object.

Note:
The only time there may be more than one value is with wrapped style in which the parameter is a vector of values.

Member Data Documentation

Returns true if attachment.

Returns true if an actual parameter (not just a reference, for instance, in an array)

Returns true if simple type.

Name of the parameter

XmlReader instance for this parameter ready to read the element.

Type of parameter.


Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.