Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes

balb::FeatureTestMessage Class Reference

#include <balb_testmessages.h>

List of all members.

Public Types

enum  {
  SELECTION_ID_UNDEFINED = -1, SELECTION_ID_SELECTION1 = 0, SELECTION_ID_SELECTION2 = 1, SELECTION_ID_SELECTION3 = 2,
  SELECTION_ID_SELECTION4 = 3, SELECTION_ID_SELECTION5 = 4, SELECTION_ID_SELECTION6 = 5, SELECTION_ID_SELECTION7 = 6,
  SELECTION_ID_SELECTION8 = 7, SELECTION_ID_SELECTION9 = 8, SELECTION_ID_SELECTION10 = 9, SELECTION_ID_SELECTION11 = 10
}
enum  { NUM_SELECTIONS = 11 }
enum  {
  SELECTION_INDEX_SELECTION1 = 0, SELECTION_INDEX_SELECTION2 = 1, SELECTION_INDEX_SELECTION3 = 2, SELECTION_INDEX_SELECTION4 = 3,
  SELECTION_INDEX_SELECTION5 = 4, SELECTION_INDEX_SELECTION6 = 5, SELECTION_INDEX_SELECTION7 = 6, SELECTION_INDEX_SELECTION8 = 7,
  SELECTION_INDEX_SELECTION9 = 8, SELECTION_INDEX_SELECTION10 = 9, SELECTION_INDEX_SELECTION11 = 10
}

Public Member Functions

 FeatureTestMessage (bslma::Allocator *basicAllocator=0)
 FeatureTestMessage (const FeatureTestMessage &original, bslma::Allocator *basicAllocator=0)
 ~FeatureTestMessage ()
FeatureTestMessageoperator= (const FeatureTestMessage &rhs)
template<class STREAM >
STREAM & bdexStreamIn (STREAM &stream, int version)
void reset ()
int makeSelection (int selectionId)
int makeSelection (const char *name, int nameLength)
Sequence1makeSelection1 ()
Sequence1makeSelection1 (const Sequence1 &value)
bsl::vector< char > & makeSelection2 ()
bsl::vector< char > & makeSelection2 (const bsl::vector< char > &value)
Sequence2makeSelection3 ()
Sequence2makeSelection3 (const Sequence2 &value)
Sequence3makeSelection4 ()
Sequence3makeSelection4 (const Sequence3 &value)
bdlt::DatetimeTzmakeSelection5 ()
bdlt::DatetimeTzmakeSelection5 (const bdlt::DatetimeTz &value)
CustomStringmakeSelection6 ()
CustomStringmakeSelection6 (const CustomString &value)
Enumerated::ValuemakeSelection7 ()
Enumerated::ValuemakeSelection7 (Enumerated::Value value)
Choice3makeSelection8 ()
Choice3makeSelection8 (const Choice3 &value)
VoidSequencemakeSelection9 ()
VoidSequencemakeSelection9 (const VoidSequence &value)
UnsignedSequencemakeSelection10 ()
UnsignedSequencemakeSelection10 (const UnsignedSequence &value)
SequenceWithAnonymitymakeSelection11 ()
SequenceWithAnonymitymakeSelection11 (const SequenceWithAnonymity &value)
template<class MANIPULATOR >
int manipulateSelection (MANIPULATOR &manipulator)
Sequence1selection1 ()
bsl::vector< char > & selection2 ()
Sequence2selection3 ()
Sequence3selection4 ()
bdlt::DatetimeTzselection5 ()
CustomStringselection6 ()
Enumerated::Valueselection7 ()
Choice3selection8 ()
VoidSequenceselection9 ()
UnsignedSequenceselection10 ()
SequenceWithAnonymityselection11 ()
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, int version) const
int selectionId () const
template<class ACCESSOR >
int accessSelection (ACCESSOR &accessor) const
const Sequence1selection1 () const
const bsl::vector< char > & selection2 () const
const Sequence2selection3 () const
const Sequence3selection4 () const
const bdlt::DatetimeTzselection5 () const
const CustomStringselection6 () const
const Enumerated::Valueselection7 () const
const Choice3selection8 () const
const VoidSequenceselection9 () const
const UnsignedSequenceselection10 () const
const SequenceWithAnonymityselection11 () const
bool isSelection1Value () const
bool isSelection2Value () const
bool isSelection3Value () const
bool isSelection4Value () const
bool isSelection5Value () const
bool isSelection6Value () const
bool isSelection7Value () const
bool isSelection8Value () const
bool isSelection9Value () const
bool isSelection10Value () const
bool isSelection11Value () const
bool isUndefinedValue () const
const char * selectionName () const

Static Public Member Functions

static int maxSupportedBdexVersion ()
static const bdlat_SelectionInfolookupSelectionInfo (int id)
static const bdlat_SelectionInfolookupSelectionInfo (const char *name, int nameLength)

Static Public Attributes

static const char CLASS_NAME []
static const bdlat_SelectionInfo SELECTION_INFO_ARRAY []

Member Enumeration Documentation

anonymous enum
Enumerator:
SELECTION_ID_UNDEFINED 
SELECTION_ID_SELECTION1 
SELECTION_ID_SELECTION2 
SELECTION_ID_SELECTION3 
SELECTION_ID_SELECTION4 
SELECTION_ID_SELECTION5 
SELECTION_ID_SELECTION6 
SELECTION_ID_SELECTION7 
SELECTION_ID_SELECTION8 
SELECTION_ID_SELECTION9 
SELECTION_ID_SELECTION10 
SELECTION_ID_SELECTION11 
anonymous enum
Enumerator:
NUM_SELECTIONS 
anonymous enum
Enumerator:
SELECTION_INDEX_SELECTION1 
SELECTION_INDEX_SELECTION2 
SELECTION_INDEX_SELECTION3 
SELECTION_INDEX_SELECTION4 
SELECTION_INDEX_SELECTION5 
SELECTION_INDEX_SELECTION6 
SELECTION_INDEX_SELECTION7 
SELECTION_INDEX_SELECTION8 
SELECTION_INDEX_SELECTION9 
SELECTION_INDEX_SELECTION10 
SELECTION_INDEX_SELECTION11 

Constructor & Destructor Documentation

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.


Member Function Documentation

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.

template<class STREAM >
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 (  ) 
Sequence1& balb::FeatureTestMessage::makeSelection1 ( const Sequence1 value  ) 

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 (  ) 
Sequence2& balb::FeatureTestMessage::makeSelection3 ( const Sequence2 value  ) 

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 (  ) 
Sequence3& balb::FeatureTestMessage::makeSelection4 ( const Sequence3 value  ) 

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 (  ) 
Choice3& balb::FeatureTestMessage::makeSelection8 ( const Choice3 value  ) 

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.

template<class MANIPULATOR >
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.

template<class STREAM >
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.

template<class ACCESSOR >
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.


Member Data Documentation

const char balb::FeatureTestMessage::CLASS_NAME[] [static]

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