8#ifndef INCLUDED_BALL_USERFIELDVALUE
9#define INCLUDED_BALL_USERFIELDVALUE
101#include <balscm_version.h>
118#include <bsl_string.h>
119#include <bsl_vector.h>
188 template <
class t_INTEGRAL_TYPE>
190 t_INTEGRAL_TYPE value,
194 : d_value(static_cast<
bsls::Types::Int64>(value), basicAllocator) {}
302 bsl::ostream&
print(bsl::ostream& stream,
304 int spacesPerLevel = 4)
const;
354: d_value(basicAllocator)
361: d_value(value, basicAllocator)
367: d_value(value, basicAllocator)
374: d_value(basicAllocator)
382: d_value(value, basicAllocator)
389: d_value(value, basicAllocator)
396: d_value(original.d_value, basicAllocator)
404 d_value = rhs.d_value;
449 d_value.
swap(other.d_value);
472 return d_value.
the<
double>();
504 return d_value.getAllocator();
513 return lhs.d_value == rhs.d_value;
519 return !(lhs == rhs);
524 const UserFieldValue&
object)
526 return object.
print(stream, 0, -1);
531void ball::swap(UserFieldValue& a, UserFieldValue& b)
535 a.d_value.swap(b.d_value);
Definition ball_userfieldvalue.h:135
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
bool isUnset() const
Definition ball_userfieldvalue.h:454
void setDouble(double value)
Definition ball_userfieldvalue.h:421
friend void swap(UserFieldValue &, UserFieldValue &)
const bsl::string & theString() const
Definition ball_userfieldvalue.h:476
const bdlt::DatetimeTz & theDatetimeTz() const
Definition ball_userfieldvalue.h:484
void setInt64(bsls::Types::Int64 value)
Definition ball_userfieldvalue.h:415
const bsls::Types::Int64 & theInt64() const
Definition ball_userfieldvalue.h:460
void setDatetimeTz(const bdlt::DatetimeTz &value)
Definition ball_userfieldvalue.h:433
UserFieldValue(t_INTEGRAL_TYPE value, bslma::Allocator *basicAllocator=0, typename bsl::enable_if< bsl::is_integral< t_INTEGRAL_TYPE >::value >::type *=0)
Definition ball_userfieldvalue.h:189
UserFieldValue & operator=(const UserFieldValue &rhs)
Definition ball_userfieldvalue.h:402
friend bool operator==(const UserFieldValue &, const UserFieldValue &)
void setCharArray(const bsl::vector< char > &value)
Definition ball_userfieldvalue.h:439
void reset()
Definition ball_userfieldvalue.h:409
const double & theDouble() const
Definition ball_userfieldvalue.h:468
const bsl::vector< char > & theCharArray() const
Definition ball_userfieldvalue.h:492
ball::UserFieldType::Enum type() const
BSLMF_NESTED_TRAIT_DECLARATION(UserFieldValue, bslma::UsesBslmaAllocator)
UserFieldValue(bslma::Allocator *basicAllocator=0)
Definition ball_userfieldvalue.h:353
~UserFieldValue()=default
Destroy this object.
void setString(const bsl::string_view &value)
Definition ball_userfieldvalue.h:427
bslma::Allocator * allocator() const
Definition ball_userfieldvalue.h:502
void reset()
Definition bdlb_variant.h:7472
bool is() const
Definition bdlb_variant.h:7605
bool isUnset() const
Definition bdlb_variant.h:7612
TYPE & the()
Definition bdlb_variant.h:7517
VariantImp & assign(const TYPE &value)
void swap(VariantImp &other)
Definition bdlb_variant.h:7482
VariantImp & assignTo(const SOURCE_TYPE &value)
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
Definition bdlb_variant.h:7619
Definition bdlb_variant.h:2312
Definition bdlt_datetimetz.h:308
Definition bslstl_stringview.h:441
Definition bslstl_string.h:1281
Definition bslstl_vector.h:1025
Definition bslma_allocator.h:457
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_ASSERT_SAFE(X)
Definition bsls_assert.h:1762
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition ball_administration.h:214
bsl::ostream & operator<<(bsl::ostream &output, const Attribute &attribute)
void swap(ball::UserFields &a, ball::UserFields &b)
bool operator!=(const Attribute &lhs, const Attribute &rhs)
bool operator==(const Attribute &lhs, const Attribute &rhs)
basic_string< char > string
Definition bslstl_string.h:782
Definition bdlt_iso8601util.h:691
Enum
Definition ball_userfieldtype.h:123
Definition bslmf_enableif.h:525
Definition bslmf_isintegral.h:130
Definition bslma_usesbslmaallocator.h:343
long long Int64
Definition bsls_types.h:132