#include <balb_testmessages.h>
◆ anonymous enum
Enumerator |
---|
SELECTION_ID_UNDEFINED | |
SELECTION_ID_RESPONSE_DATA | |
SELECTION_ID_FEATURE_RESPONSE | |
◆ anonymous enum
◆ anonymous enum
Enumerator |
---|
SELECTION_INDEX_RESPONSE_DATA | |
SELECTION_INDEX_FEATURE_RESPONSE | |
◆ Response() [1/2]
Create an object of type Response
having the default value. Use the optionally specified basicAllocator
to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
◆ Response() [2/2]
Create an object of type Response
having the value of the specified original
object. Use the optionally specified basicAllocator
to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
◆ ~Response()
balb::Response::~Response |
( |
| ) |
|
|
inline |
◆ accessSelection()
template<class ACCESSOR >
int balb::Response::accessSelection |
( |
ACCESSOR & |
accessor | ) |
const |
Invoke the specified accessor
on the non-modifiable selection, supplying accessor
with the corresponding selection information structure. Return the value returned from the invocation of accessor
if this object has a defined selection, and -1 otherwise.
◆ bdexStreamIn()
template<class STREAM >
STREAM & balb::Response::bdexStreamIn |
( |
STREAM & |
stream, |
|
|
int |
version |
|
) |
| |
Assign to this object the value read from the specified input stream
using the specified version
format and return a reference to the modifiable stream
. If stream
is initially invalid, this operation has no effect. If stream
becomes invalid during this operation, this object is valid, but its value is undefined. If version
is not supported, stream
is marked invalid and this object is unaltered. Note that no version is read from stream
. See the bslx
package-level documentation for more information on bdex
streaming of value-semantic types and containers.
◆ bdexStreamOut()
template<class STREAM >
STREAM & balb::Response::bdexStreamOut |
( |
STREAM & |
stream, |
|
|
int |
version |
|
) |
| const |
Write the value of this object to the specified output stream
using the specified version
format and return a reference to the modifiable stream
. If version
is not supported, stream
is unmodified. Note that version
is not written to stream
. See the bslx
package-level documentation for more information on bdex
streaming of value-semantic types and containers.
◆ featureResponse() [1/2]
Return a reference to the modifiable "FeatureResponse" selection of this object if "FeatureResponse" is the current selection. The behavior is undefined unless "FeatureResponse" is the selection of this object.
◆ featureResponse() [2/2]
Return a reference to the non-modifiable "FeatureResponse" selection of this object if "FeatureResponse" is the current selection. The behavior is undefined unless "FeatureResponse" is the selection of this object.
◆ isFeatureResponseValue()
bool balb::Response::isFeatureResponseValue |
( |
| ) |
const |
|
inline |
Return true
if the value of this object is a "FeatureResponse" value, and return false
otherwise.
◆ isResponseDataValue()
bool balb::Response::isResponseDataValue |
( |
| ) |
const |
|
inline |
Return true
if the value of this object is a "ResponseData" value, and return false
otherwise.
◆ isUndefinedValue()
bool balb::Response::isUndefinedValue |
( |
| ) |
const |
|
inline |
Return true
if the value of this object is undefined, and false
otherwise.
◆ lookupSelectionInfo() [1/2]
static const bdlat_SelectionInfo * balb::Response::lookupSelectionInfo |
( |
const char * |
name, |
|
|
int |
nameLength |
|
) |
| |
|
static |
Return selection information for the selection indicated by the specified name
of the specified nameLength
if the selection exists, and 0 otherwise.
◆ lookupSelectionInfo() [2/2]
Return selection information for the selection indicated by the specified id
if the selection exists, and 0 otherwise.
◆ makeFeatureResponse() [1/2]
Set the value of this object to be a "FeatureResponse" value. Optionally specify the value
of the "FeatureResponse". If value
is not specified, the default "FeatureResponse" value is used.
◆ makeFeatureResponse() [2/2]
◆ makeResponseData() [1/2]
Set the value of this object to be a "ResponseData" value. Optionally specify the value
of the "ResponseData". If value
is not specified, the default "ResponseData" value is used.
◆ makeResponseData() [2/2]
◆ makeSelection() [1/2]
int balb::Response::makeSelection |
( |
const char * |
name, |
|
|
int |
nameLength |
|
) |
| |
Set the value of this object to be the default for the selection indicated by the specified name
of the specified nameLength
. Return 0 on success, and non-zero value otherwise (i.e., the selection is not found).
◆ makeSelection() [2/2]
int balb::Response::makeSelection |
( |
int |
selectionId | ) |
|
Set the value of this object to be the default for the selection indicated by the specified selectionId
. Return 0 on success, and non-zero value otherwise (i.e., the selection is not found).
◆ manipulateSelection()
template<class MANIPULATOR >
int balb::Response::manipulateSelection |
( |
MANIPULATOR & |
manipulator | ) |
|
Invoke the specified manipulator
on the address of the modifiable selection, supplying manipulator
with the corresponding selection information structure. Return the value returned from the invocation of manipulator
if this object has a defined selection, and -1 otherwise.
◆ maxSupportedBdexVersion()
int balb::Response::maxSupportedBdexVersion |
( |
| ) |
|
|
inlinestatic |
Return the most current bdex
streaming version number supported by this class. See the bslx
package-level documentation for more information on bdex
streaming of value-semantic types and containers.
◆ operator=()
◆ print()
bsl::ostream & balb::Response::print |
( |
bsl::ostream & |
stream, |
|
|
int |
level = 0 , |
|
|
int |
spacesPerLevel = 4 |
|
) |
| const |
Format this object to the specified output stream
at the optionally specified indentation level
and return a reference to the modifiable stream
. If level
is specified, optionally specify spacesPerLevel
, the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of level * spacesPerLevel
. If level
is negative, suppress indentation of the first line. If spacesPerLevel
is negative, suppress line breaks and format the entire output on one line. If stream
is initially invalid, this operation has no effect. Note that a trailing newline is provided in multiline mode only.
◆ reset()
void balb::Response::reset |
( |
| ) |
|
Reset this object to the default value (i.e., its value upon default construction).
◆ responseData() [1/2]
Return a reference to the modifiable "ResponseData" selection of this object if "ResponseData" is the current selection. The behavior is undefined unless "ResponseData" is the selection of this object.
◆ responseData() [2/2]
const bsl::string & balb::Response::responseData |
( |
| ) |
const |
|
inline |
Return a reference to the non-modifiable "ResponseData" selection of this object if "ResponseData" is the current selection. The behavior is undefined unless "ResponseData" is the selection of this object.
◆ selectionId()
int balb::Response::selectionId |
( |
| ) |
const |
|
inline |
Return the id of the current selection if the selection is defined, and -1 otherwise.
◆ selectionName()
const char * balb::Response::selectionName |
( |
| ) |
const |
◆ CLASS_NAME
const char balb::Response::CLASS_NAME[] |
|
static |
◆ d_featureResponse
◆ d_responseData
◆ SELECTION_INFO_ARRAY
The documentation for this class was generated from the following file: