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

#include <baljsn_convertfromjsonoptions.h>

Public Member Functions

 ConvertFromJsonOptions ()
 
 ConvertFromJsonOptions (const ConvertFromJsonOptions &original) ~ConvertFromJsonOptions()=default
 
ConvertFromJsonOptionsoperator= (const ConvertFromJsonOptions &rhs) void reset()
 
void setMaxDepth (int value)
 
void setSkipUnknownElements (bool value)
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 
int maxDepth () const
 
bool skipUnknownElements () const
 

Friends

bool operator== (const ConvertFromJsonOptions &lhs, const ConvertFromJsonOptions &rhs)
 
bool operator!= (const ConvertFromJsonOptions &lhs, const ConvertFromJsonOptions &rhs)
 
bsl::ostream & operator<< (bsl::ostream &stream, const ConvertFromJsonOptions &rhs)
 
template<typename t_HASH_ALGORITHM >
void hashAppend (t_HASH_ALGORITHM &hashAlg, const ConvertFromJsonOptions &object)
 

Constructor & Destructor Documentation

◆ ConvertFromJsonOptions() [1/2]

baljsn::ConvertFromJsonOptions::ConvertFromJsonOptions ( )
inline

Create an object of type ConvertFromJsonOptions having the default value.

◆ ConvertFromJsonOptions() [2/2]

baljsn::ConvertFromJsonOptions::ConvertFromJsonOptions ( const ConvertFromJsonOptions original)
default

= default;

Create a ConvertFromJsonOptions object having the value of the specified original object. Destroy this object.

Member Function Documentation

◆ maxDepth()

int baljsn::ConvertFromJsonOptions::maxDepth ( ) const
inline

Return the value of the maxDepth attribute of this object.

◆ operator=()

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

Assign to this object the value of the specified rhs.

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

◆ print()

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

◆ setMaxDepth()

void baljsn::ConvertFromJsonOptions::setMaxDepth ( int  value)
inline

Set the maxDepth attribute of this object to the specified value.

Precondition
The behavior is undefined unless 0 <= value.

◆ setSkipUnknownElements()

void baljsn::ConvertFromJsonOptions::setSkipUnknownElements ( bool  value)
inline

Set the skipUnknownElements attribute of this object to the specified value.

◆ skipUnknownElements()

bool baljsn::ConvertFromJsonOptions::skipUnknownElements ( ) const
inline

Return the value of the skipUnknownElements attribute of this object.

Friends And Related Symbol Documentation

◆ hashAppend

template<typename t_HASH_ALGORITHM >
void hashAppend ( t_HASH_ALGORITHM &  hashAlg,
const ConvertFromJsonOptions object 
)
friend

Pass the specified object to the specified hashAlg. This function integrates with the bslh modular hashing system and effectively provides a bsl::hash specialization for ConvertFromJsonOptions.

◆ operator!=

bool operator!= ( const ConvertFromJsonOptions lhs,
const ConvertFromJsonOptions rhs 
)
friend

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 any respective attribute do not have the same value.

◆ operator<<

bsl::ostream & operator<< ( bsl::ostream &  stream,
const ConvertFromJsonOptions rhs 
)
friend

Format the specified rhs to the specified output stream and return a reference to the modifiable stream.

◆ operator==

bool operator== ( const ConvertFromJsonOptions lhs,
const ConvertFromJsonOptions rhs 
)
friend

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.


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