Quick Links: |
#include <balb_testmessages.h>
anonymous enum |
anonymous enum |
balb::FeatureTestMessage::FeatureTestMessage | ( | bslma::Allocator * | basicAllocator = 0 |
) | [explicit] |
Create an object of type FeatureTestMessage
having the default value. Use the optionally specified basicAllocator
to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
balb::FeatureTestMessage::FeatureTestMessage | ( | const FeatureTestMessage & | original, | |
bslma::Allocator * | basicAllocator = 0 | |||
) |
Create an object of type FeatureTestMessage
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.
balb::FeatureTestMessage::~FeatureTestMessage | ( | ) |
Destroy this object.
static int balb::FeatureTestMessage::maxSupportedBdexVersion | ( | ) | [static] |
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.
static const bdlat_SelectionInfo* balb::FeatureTestMessage::lookupSelectionInfo | ( | int | id | ) | [static] |
Return selection information for the selection indicated by the specified id
if the selection exists, and 0 otherwise.
static const bdlat_SelectionInfo* balb::FeatureTestMessage::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.
FeatureTestMessage& balb::FeatureTestMessage::operator= | ( | const FeatureTestMessage & | rhs | ) |
Assign to this object the value of the specified rhs
object.
STREAM& balb::FeatureTestMessage::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.
void balb::FeatureTestMessage::reset | ( | ) |
Reset this object to the default value (i.e., its value upon default construction).
int balb::FeatureTestMessage::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).
int balb::FeatureTestMessage::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).
Sequence1& balb::FeatureTestMessage::makeSelection1 | ( | ) |
Set the value of this object to be a "Selection1" value. Optionally specify the value
of the "Selection1". If value
is not specified, the default "Selection1" value is used.
bsl::vector<char>& balb::FeatureTestMessage::makeSelection2 | ( | ) |
bsl::vector<char>& balb::FeatureTestMessage::makeSelection2 | ( | const bsl::vector< char > & | value | ) |
Set the value of this object to be a "Selection2" value. Optionally specify the value
of the "Selection2". If value
is not specified, the default "Selection2" value is used.
Sequence2& balb::FeatureTestMessage::makeSelection3 | ( | ) |
Set the value of this object to be a "Selection3" value. Optionally specify the value
of the "Selection3". If value
is not specified, the default "Selection3" value is used.
Sequence3& balb::FeatureTestMessage::makeSelection4 | ( | ) |
Set the value of this object to be a "Selection4" value. Optionally specify the value
of the "Selection4". If value
is not specified, the default "Selection4" value is used.
bdlt::DatetimeTz& balb::FeatureTestMessage::makeSelection5 | ( | ) |
bdlt::DatetimeTz& balb::FeatureTestMessage::makeSelection5 | ( | const bdlt::DatetimeTz & | value | ) |
Set the value of this object to be a "Selection5" value. Optionally specify the value
of the "Selection5". If value
is not specified, the default "Selection5" value is used.
CustomString& balb::FeatureTestMessage::makeSelection6 | ( | ) |
CustomString& balb::FeatureTestMessage::makeSelection6 | ( | const CustomString & | value | ) |
Set the value of this object to be a "Selection6" value. Optionally specify the value
of the "Selection6". If value
is not specified, the default "Selection6" value is used.
Enumerated::Value& balb::FeatureTestMessage::makeSelection7 | ( | ) |
Enumerated::Value& balb::FeatureTestMessage::makeSelection7 | ( | Enumerated::Value | value | ) |
Set the value of this object to be a "Selection7" value. Optionally specify the value
of the "Selection7". If value
is not specified, the default "Selection7" value is used.
Choice3& balb::FeatureTestMessage::makeSelection8 | ( | ) |
Set the value of this object to be a "Selection8" value. Optionally specify the value
of the "Selection8". If value
is not specified, the default "Selection8" value is used.
VoidSequence& balb::FeatureTestMessage::makeSelection9 | ( | ) |
VoidSequence& balb::FeatureTestMessage::makeSelection9 | ( | const VoidSequence & | value | ) |
Set the value of this object to be a "Selection9" value. Optionally specify the value
of the "Selection9". If value
is not specified, the default "Selection9" value is used.
UnsignedSequence& balb::FeatureTestMessage::makeSelection10 | ( | ) |
UnsignedSequence& balb::FeatureTestMessage::makeSelection10 | ( | const UnsignedSequence & | value | ) |
Set the value of this object to be a "Selection10" value. Optionally specify the value
of the "Selection10". If value
is not specified, the default "Selection10" value is used.
SequenceWithAnonymity& balb::FeatureTestMessage::makeSelection11 | ( | ) |
SequenceWithAnonymity& balb::FeatureTestMessage::makeSelection11 | ( | const SequenceWithAnonymity & | value | ) |
Set the value of this object to be a "Selection11" value. Optionally specify the value
of the "Selection11". If value
is not specified, the default "Selection11" value is used.
int balb::FeatureTestMessage::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.
Sequence1& balb::FeatureTestMessage::selection1 | ( | ) |
Return a reference to the modifiable "Selection1" selection of this object if "Selection1" is the current selection. The behavior is undefined unless "Selection1" is the selection of this object.
bsl::vector<char>& balb::FeatureTestMessage::selection2 | ( | ) |
Return a reference to the modifiable "Selection2" selection of this object if "Selection2" is the current selection. The behavior is undefined unless "Selection2" is the selection of this object.
Sequence2& balb::FeatureTestMessage::selection3 | ( | ) |
Return a reference to the modifiable "Selection3" selection of this object if "Selection3" is the current selection. The behavior is undefined unless "Selection3" is the selection of this object.
Sequence3& balb::FeatureTestMessage::selection4 | ( | ) |
Return a reference to the modifiable "Selection4" selection of this object if "Selection4" is the current selection. The behavior is undefined unless "Selection4" is the selection of this object.
bdlt::DatetimeTz& balb::FeatureTestMessage::selection5 | ( | ) |
Return a reference to the modifiable "Selection5" selection of this object if "Selection5" is the current selection. The behavior is undefined unless "Selection5" is the selection of this object.
CustomString& balb::FeatureTestMessage::selection6 | ( | ) |
Return a reference to the modifiable "Selection6" selection of this object if "Selection6" is the current selection. The behavior is undefined unless "Selection6" is the selection of this object.
Enumerated::Value& balb::FeatureTestMessage::selection7 | ( | ) |
Return a reference to the modifiable "Selection7" selection of this object if "Selection7" is the current selection. The behavior is undefined unless "Selection7" is the selection of this object.
Choice3& balb::FeatureTestMessage::selection8 | ( | ) |
Return a reference to the modifiable "Selection8" selection of this object if "Selection8" is the current selection. The behavior is undefined unless "Selection8" is the selection of this object.
VoidSequence& balb::FeatureTestMessage::selection9 | ( | ) |
Return a reference to the modifiable "Selection9" selection of this object if "Selection9" is the current selection. The behavior is undefined unless "Selection9" is the selection of this object.
UnsignedSequence& balb::FeatureTestMessage::selection10 | ( | ) |
Return a reference to the modifiable "Selection10" selection of this object if "Selection10" is the current selection. The behavior is undefined unless "Selection10" is the selection of this object.
SequenceWithAnonymity& balb::FeatureTestMessage::selection11 | ( | ) |
Return a reference to the modifiable "Selection11" selection of this object if "Selection11" is the current selection. The behavior is undefined unless "Selection11" is the selection of this object.
bsl::ostream& balb::FeatureTestMessage::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.
STREAM& balb::FeatureTestMessage::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.
int balb::FeatureTestMessage::selectionId | ( | ) | const |
Return the id of the current selection if the selection is defined, and -1 otherwise.
int balb::FeatureTestMessage::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.
const Sequence1& balb::FeatureTestMessage::selection1 | ( | ) | const |
Return a reference to the non-modifiable "Selection1" selection of this object if "Selection1" is the current selection. The behavior is undefined unless "Selection1" is the selection of this object.
const bsl::vector<char>& balb::FeatureTestMessage::selection2 | ( | ) | const |
Return a reference to the non-modifiable "Selection2" selection of this object if "Selection2" is the current selection. The behavior is undefined unless "Selection2" is the selection of this object.
const Sequence2& balb::FeatureTestMessage::selection3 | ( | ) | const |
Return a reference to the non-modifiable "Selection3" selection of this object if "Selection3" is the current selection. The behavior is undefined unless "Selection3" is the selection of this object.
const Sequence3& balb::FeatureTestMessage::selection4 | ( | ) | const |
Return a reference to the non-modifiable "Selection4" selection of this object if "Selection4" is the current selection. The behavior is undefined unless "Selection4" is the selection of this object.
const bdlt::DatetimeTz& balb::FeatureTestMessage::selection5 | ( | ) | const |
Return a reference to the non-modifiable "Selection5" selection of this object if "Selection5" is the current selection. The behavior is undefined unless "Selection5" is the selection of this object.
const CustomString& balb::FeatureTestMessage::selection6 | ( | ) | const |
Return a reference to the non-modifiable "Selection6" selection of this object if "Selection6" is the current selection. The behavior is undefined unless "Selection6" is the selection of this object.
const Enumerated::Value& balb::FeatureTestMessage::selection7 | ( | ) | const |
Return a reference to the non-modifiable "Selection7" selection of this object if "Selection7" is the current selection. The behavior is undefined unless "Selection7" is the selection of this object.
const Choice3& balb::FeatureTestMessage::selection8 | ( | ) | const |
Return a reference to the non-modifiable "Selection8" selection of this object if "Selection8" is the current selection. The behavior is undefined unless "Selection8" is the selection of this object.
const VoidSequence& balb::FeatureTestMessage::selection9 | ( | ) | const |
Return a reference to the non-modifiable "Selection9" selection of this object if "Selection9" is the current selection. The behavior is undefined unless "Selection9" is the selection of this object.
const UnsignedSequence& balb::FeatureTestMessage::selection10 | ( | ) | const |
Return a reference to the non-modifiable "Selection10" selection of this object if "Selection10" is the current selection. The behavior is undefined unless "Selection10" is the selection of this object.
const SequenceWithAnonymity& balb::FeatureTestMessage::selection11 | ( | ) | const |
Return a reference to the non-modifiable "Selection11" selection of this object if "Selection11" is the current selection. The behavior is undefined unless "Selection11" is the selection of this object.
bool balb::FeatureTestMessage::isSelection1Value | ( | ) | const |
Return true
if the value of this object is a "Selection1" value, and return false
otherwise.
bool balb::FeatureTestMessage::isSelection2Value | ( | ) | const |
Return true
if the value of this object is a "Selection2" value, and return false
otherwise.
bool balb::FeatureTestMessage::isSelection3Value | ( | ) | const |
Return true
if the value of this object is a "Selection3" value, and return false
otherwise.
bool balb::FeatureTestMessage::isSelection4Value | ( | ) | const |
Return true
if the value of this object is a "Selection4" value, and return false
otherwise.
bool balb::FeatureTestMessage::isSelection5Value | ( | ) | const |
Return true
if the value of this object is a "Selection5" value, and return false
otherwise.
bool balb::FeatureTestMessage::isSelection6Value | ( | ) | const |
Return true
if the value of this object is a "Selection6" value, and return false
otherwise.
bool balb::FeatureTestMessage::isSelection7Value | ( | ) | const |
Return true
if the value of this object is a "Selection7" value, and return false
otherwise.
bool balb::FeatureTestMessage::isSelection8Value | ( | ) | const |
Return true
if the value of this object is a "Selection8" value, and return false
otherwise.
bool balb::FeatureTestMessage::isSelection9Value | ( | ) | const |
Return true
if the value of this object is a "Selection9" value, and return false
otherwise.
bool balb::FeatureTestMessage::isSelection10Value | ( | ) | const |
Return true
if the value of this object is a "Selection10" value, and return false
otherwise.
bool balb::FeatureTestMessage::isSelection11Value | ( | ) | const |
Return true
if the value of this object is a "Selection11" value, and return false
otherwise.
bool balb::FeatureTestMessage::isUndefinedValue | ( | ) | const |
Return true
if the value of this object is undefined, and false
otherwise.
const char* balb::FeatureTestMessage::selectionName | ( | ) | const |
Return the symbolic name of the current selection of this object.
const char balb::FeatureTestMessage::CLASS_NAME[] [static] |
const bdlat_SelectionInfo balb::FeatureTestMessage::SELECTION_INFO_ARRAY[] [static] |