BDE 4.39.x Production Release
Loading...
Searching...
No Matches
baljsn::DatumDecoderOptions Class Reference

#include <baljsn_datumdecoderoptions.h>

Detailed Description

This simply constrained (value-semantic) attribute class specifies options for decoding Datum objects in the JSON format. See the Attributes section for information on the class attributes.

Note
Note that the class invariants are identically the constraints on the individual attributes.

See baljsn_datumdecoderoptions

Public Member Functions

 DatumDecoderOptions ()
 
 DatumDecoderOptions (const DatumDecoderOptions &original)
 
 ~DatumDecoderOptions ()
 
DatumDecoderOptionsoperator= (const DatumDecoderOptions &rhs)
 
void reset ()
 
void setMaxNestedDepth (int value)
 
int maxNestedDepth () const
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 

Static Public Attributes

static const int s_DEFAULT_INITIALIZER_MAX_NESTED_DEPTH
 

Constructor & Destructor Documentation

◆ DatumDecoderOptions() [1/2]

baljsn::DatumDecoderOptions::DatumDecoderOptions ( )

Create an object of type DatumDecoderOptions having the default value.

◆ DatumDecoderOptions() [2/2]

baljsn::DatumDecoderOptions::DatumDecoderOptions ( const DatumDecoderOptions original)

Create an object of type DatumDecoderOptions having the value of the specified original object.

◆ ~DatumDecoderOptions()

baljsn::DatumDecoderOptions::~DatumDecoderOptions ( )

Destroy this object.

Member Function Documentation

◆ maxNestedDepth()

int baljsn::DatumDecoderOptions::maxNestedDepth ( ) const
inline

Return the "maxNestedDepth" attribute of this object.

◆ operator=()

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

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

◆ print()

bsl::ostream & baljsn::DatumDecoderOptions::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
Note that a trailing newline is provided in multiline mode only.

◆ reset()

void baljsn::DatumDecoderOptions::reset ( )

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

◆ setMaxNestedDepth()

void baljsn::DatumDecoderOptions::setMaxNestedDepth ( int  value)
inline

Set the "maxNestedDepth" attribute of this object to the specified value.

Member Data Documentation

◆ s_DEFAULT_INITIALIZER_MAX_NESTED_DEPTH

const int baljsn::DatumDecoderOptions::s_DEFAULT_INITIALIZER_MAX_NESTED_DEPTH
static

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