BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlt::Iso8601UtilParseConfiguration Class Reference

#include <bdlt_iso8601utilparseconfiguration.h>

Public Member Functions

 Iso8601UtilParseConfiguration ()
 
 Iso8601UtilParseConfiguration (const Iso8601UtilParseConfiguration original)=default
 
 ~Iso8601UtilParseConfiguration ()
 Destroy this object.
 
Iso8601UtilParseConfiguration setBasic (bool value=true)
 
Iso8601UtilParseConfiguration setRelaxed (bool value=true)
 
bool basic () const
 
bool relaxed () const
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 

Friends

bool operator== (Iso8601UtilParseConfiguration, Iso8601UtilParseConfiguration)
 
bool operator!= (Iso8601UtilParseConfiguration, Iso8601UtilParseConfiguration)
 

Detailed Description

This unconstrained (value-semantic) attribute class characterizes how to configure certain behavior in Iso8601Util functions. See the Attributes section for information on the class attributes.

See bdlt_iso8601utilparseconfiguration

Constructor & Destructor Documentation

◆ Iso8601UtilParseConfiguration() [1/2]

bdlt::Iso8601UtilParseConfiguration::Iso8601UtilParseConfiguration ( )
inline

Create an Iso8601UtilParseConfiguration object having the (default) attribute values:

relaxed() == false
basic() == false
bool relaxed() const
Definition bdlt_iso8601utilparseconfiguration.h:308
bool basic() const
Definition bdlt_iso8601utilparseconfiguration.h:302

◆ Iso8601UtilParseConfiguration() [2/2]

bdlt::Iso8601UtilParseConfiguration::Iso8601UtilParseConfiguration ( const Iso8601UtilParseConfiguration  original)
default

Create an Iso8601UtilParseConfiguration object having the value of the specified original configuration.

◆ ~Iso8601UtilParseConfiguration()

bdlt::Iso8601UtilParseConfiguration::~Iso8601UtilParseConfiguration ( )
inline

Member Function Documentation

◆ basic()

bool bdlt::Iso8601UtilParseConfiguration::basic ( ) const
inline

Return true if the basic field of this object is set and false otherwise.

◆ print()

bsl::ostream & bdlt::Iso8601UtilParseConfiguration::print ( bsl::ostream &  stream,
int  level = 0,
int  spacesPerLevel = 4 
) const

Write the value of this object to the specified output stream in a human-readable format, and return a reference to stream. Optionally specify an initial indentation level, whose absolute value is incremented recursively for nested objects. If level is specified, optionally specify spacesPerLevel, whose absolute value indicates the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified, and can change without notice.

◆ relaxed()

bool bdlt::Iso8601UtilParseConfiguration::relaxed ( ) const
inline

Return true if the relaxed field of this object is set and false otherwise.

◆ setBasic()

Iso8601UtilParseConfiguration bdlt::Iso8601UtilParseConfiguration::setBasic ( bool  value = true)
inline

Assign to this object the value of the specified rhs configuration, and return a reference providing modifiable access to this object. Set the basic field of this object to the specified value and return a copy of this object.

◆ setRelaxed()

Iso8601UtilParseConfiguration bdlt::Iso8601UtilParseConfiguration::setRelaxed ( bool  value = true)
inline

Set the relaxed field of this object to the specified value and return a copy of this object.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( Iso8601UtilParseConfiguration  ,
Iso8601UtilParseConfiguration   
)
friend

Return true if the specified lhs and rhs objects do not have the same value, and false otherwise. Two Iso8601UtilParseConfiguration objects do not have the same value if either of their basic or relaxed attributes (respectively) do not have the same value.

◆ operator==

bool operator== ( Iso8601UtilParseConfiguration  ,
Iso8601UtilParseConfiguration   
)
friend

Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two Iso8601UtilParseConfiguration objects have the same value if each of their basic and relaxed attributes (respectively) have the same value.


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