Quick Links:

bal | bbl | bdl | bsl

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

baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType Class Reference

#include <baljsn_encoder_testtypes.h>

List of all members.

Public Types

typedef bsl::string BaseType

Public Member Functions

 EncoderTestChoiceWithAllCategoriesCustomizedType (bslma::Allocator *basicAllocator=0)
 EncoderTestChoiceWithAllCategoriesCustomizedType (const EncoderTestChoiceWithAllCategoriesCustomizedType &original, bslma::Allocator *basicAllocator=0)
 EncoderTestChoiceWithAllCategoriesCustomizedType (const bsl::string &value, bslma::Allocator *basicAllocator=0)
 ~EncoderTestChoiceWithAllCategoriesCustomizedType ()
EncoderTestChoiceWithAllCategoriesCustomizedTypeoperator= (const EncoderTestChoiceWithAllCategoriesCustomizedType &rhs)
void reset ()
int fromString (const bsl::string &value)
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
const bsl::stringtoString () const

Static Public Member Functions

static int checkRestrictions (const bsl::string &value)

Static Public Attributes

static const char CLASS_NAME []

Friends

bool operator== (const EncoderTestChoiceWithAllCategoriesCustomizedType &lhs, const EncoderTestChoiceWithAllCategoriesCustomizedType &rhs)
bool operator!= (const EncoderTestChoiceWithAllCategoriesCustomizedType &lhs, const EncoderTestChoiceWithAllCategoriesCustomizedType &rhs)

Member Typedef Documentation


Constructor & Destructor Documentation

baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType::EncoderTestChoiceWithAllCategoriesCustomizedType ( bslma::Allocator basicAllocator = 0  )  [explicit]

Create an object of type EncoderTestChoiceWithAllCategoriesCustomizedType having the default value. Use the optionally specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType::EncoderTestChoiceWithAllCategoriesCustomizedType ( const EncoderTestChoiceWithAllCategoriesCustomizedType original,
bslma::Allocator basicAllocator = 0 
)

Create an object of type EncoderTestChoiceWithAllCategoriesCustomizedType 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.

baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType::EncoderTestChoiceWithAllCategoriesCustomizedType ( const bsl::string value,
bslma::Allocator basicAllocator = 0 
) [explicit]

Create an object of type EncoderTestChoiceWithAllCategoriesCustomizedType having the specified value. Use the optionally specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType::~EncoderTestChoiceWithAllCategoriesCustomizedType (  ) 

Destroy this object.


Member Function Documentation

EncoderTestChoiceWithAllCategoriesCustomizedType& baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType::operator= ( const EncoderTestChoiceWithAllCategoriesCustomizedType rhs  ) 

Assign to this object the value of the specified rhs object.

void baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType::reset (  ) 

Reset this object to the default value (i.e., its value upon default construction).

int baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType::fromString ( const bsl::string value  ) 

Convert from the specified value to this type. Return 0 if successful and non-zero otherwise.

bsl::ostream& baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType::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.

const bsl::string& baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType::toString (  )  const

Convert this value to bsl::string.

static int baljsn::EncoderTestChoiceWithAllCategoriesCustomizedType::checkRestrictions ( const bsl::string value  )  [static]

Check if the specified value satisfies the restrictions of this class (i.e., "EncoderTestChoiceWithAllCategoriesCustomizedType"). Return 0 if successful (i.e., the restrictions are satisfied) and non-zero otherwise.


Friends And Related Function Documentation

Return true if the specified lhs and rhs attribute objects have the same value, and false otherwise. Two attribute objects have the same value if each respective attribute has the same value.

Return true if the specified lhs and rhs attribute objects do not have the same value, and false otherwise. Two attribute objects do not have the same value if one or more respective attributes differ in values.


Member Data Documentation


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