IT_Bus::Integer Class Reference

#include <it_bus/integer.h>

Inheritance diagram for IT_Bus::Integer:

IT_Bus::AnySimpleType IT_Bus::AnyType IT_Bus::ImplementationDetails IT_Bus::NonNegativeInteger IT_Bus::NonPositiveInteger IT_Bus::PositiveInteger IT_Bus::NegativeInteger List of all members.

Detailed Description

Class encapsulated within generated classes derived from xsd:integer type definitions in a WSDL or XSD file.

This class stores the value as a Decimal value.

Definition at line 30 of file integer.h.

Public Types

typedef IT_Reflect::ValueRef<
IT_Bus::Integer
IT_ReflectionType

Public Member Functions

 Integer () IT_THROW_DECL(())
 No argument constructor.
 Integer (short value) IT_THROW_DECL(())
 Constructor.
 Integer (unsigned short value) IT_THROW_DECL(())
 Constructor.
 Integer (int value) IT_THROW_DECL(())
 Constructor.
 Integer (unsigned int value) IT_THROW_DECL(())
 Constructor.
 Integer (long value) IT_THROW_DECL(())
 Constructor.
 Integer (unsigned long value) IT_THROW_DECL(())
 Constructor.
 Integer (IT_LongLong value) IT_THROW_DECL(())
 Constructor.
 Integer (IT_ULongLong value) IT_THROW_DECL(())
 Constructor.
Integeroperator= (const Integer &rhs) IT_THROW_DECL(())
 Assignment operator.
Integer &operator+=(const
Integer 
is_negative () const IT_THROW_DECL(())&rhs) IT_THROW_DECL((IT_Bus Integer &operator-=(const Integer &rhs) IT_THROW_DECL((IT_Bus Integer &operator *=(const Integer &rhs) IT_THROW_DECL((IT_Bus Integer &operator/=(const Integer &rhs) IT_THROW_DECL((IT_Bus Integer &operator%=(const Integer &rhs) IT_THROW_DECL((IT_Bus Integer &operator++() IT_THROW_DECL((IT_Bus const Integer operator++(int) IT_THROW_DECL((IT_Bus Integer &operator--() IT_THROW_DECL((IT_Bus const Integer operator--(int) IT_THROW_DECL((IT_Bus bool
 Determine whether instance value is < 0.
bool is_positive () const IT_THROW_DECL(())
 Determine whether instance value is > 0.
bool is_non_negative () const IT_THROW_DECL(())
 Determine whether instance value is >= to 0.
bool is_non_positive () const IT_THROW_DECL(())
 Determine whether instance value is <= to 0.
int compare (const Integer &other) const IT_THROW_DECL(())
 Compares the value of this instance to the value of the parameter.
const Decimalget_value () const IT_THROW_DECL(())
 Return the value of this instance as a Decimal.
virtual AnyType::Kind get_kind () const
 Returns the IT_Bus::AnyType::Kind for the type.
virtual const QNameget_type () const
 Returns the IT_Bus::QName for the type.

Static Public Member Functions

static bool is_valid_integer (const Decimal &value) IT_THROW_DECL(())
 Determines whether the test value is a valid integer.

Public Attributes

Integer(const char *value,
bool truncate=false) IT_THROW_DECL((IT_Bus Integer(const String
&value, bool truncate=false)
IT_THROW_DECL((IT_Bus Integer(const Decimal &value, bool
truncate=false) IT_THROW_DECL((IT_Bu 
Integer )(const Integer &copy) IT_THROW_DECL(())
 Copy constructor.

Static Protected Member Functions

static Decimal from_unsigned (IT_ULongLong value) IT_THROW_DECL(())
 Returns a Decimal initialized with the value provided as a longlong.

Static Protected Attributes

virtual void static validate(const Decimal &value) const
IT_THROW_DECL((IT_Bus Decimal
static from_string(const char
*value, bool truncate=false)
IT_THROW_DECL((IT_Bus Decima 
from_signed )(IT_LongLong value) IT_THROW_DECL(())
 Returns a Decimal initialized with the value provided as a longlong.
static void validate_integer(const Decimal &value) IT_THROW_DECL((IT_Bus Decimal m_value
 Instance variable that holds the value for the instance.


Constructor & Destructor Documentation

IT_Bus::Integer::Integer ( short  value  ) 

Constructor.

Parameters:
short value to use in initializing instance.

IT_Bus::Integer::Integer ( unsigned short  value  ) 

Constructor.

Parameters:
unsigned short value to use in initializing instance.

IT_Bus::Integer::Integer ( int  value  ) 

Constructor.

Parameters:
int value to use in initializing instance.

IT_Bus::Integer::Integer ( unsigned int  value  ) 

Constructor.

Parameters:
unsigned int value to use in initializing instance.

IT_Bus::Integer::Integer ( long  value  ) 

Constructor.

Parameters:
long value to use in initializing instance.

IT_Bus::Integer::Integer ( unsigned long  value  ) 

Constructor.

Parameters:
unsigned long value to use in initializing instance.

IT_Bus::Integer::Integer ( IT_LongLong  value  ) 

Constructor.

Parameters:
longlong value to use in initializing instance.

IT_Bus::Integer::Integer ( IT_ULongLong  value  ) 

Constructor.

Parameters:
unsigned longlong value to use in initializing instance.


Member Function Documentation

int IT_Bus::Integer::compare ( const Integer other  )  const

Compares the value of this instance to the value of the parameter.

Parameters:
Integer instance to compare to this instance.
Returns:
-1, 0, 1
If this instance is numerically greater than the comparison value, return 1. If both values are the same, return 0. Else, return -1.

static Decimal IT_Bus::Integer::from_unsigned ( IT_ULongLong  value  )  [static, protected]

Returns a Decimal initialized with the value provided as a longlong.

Parameters:
ULongLong value to use in initializing the Decimal.
Returns:
Decimal

virtual AnyType::Kind IT_Bus::Integer::get_kind (  )  const [virtual]

Returns the IT_Bus::AnyType::Kind for the type.

Derived subclasses override this method and return the appropriate Kind.

Returns:
AnyType::BUILT_IN.

Reimplemented from IT_Bus::AnyType.

virtual const QName& IT_Bus::Integer::get_type (  )  const [virtual]

Returns the IT_Bus::QName for the type.

Derived subclasses implement this method and return their QName.

Returns:
NT_SCHEMA_INTEGER.

Implements IT_Bus::AnyType.

Reimplemented in IT_Bus::NonPositiveInteger, IT_Bus::NegativeInteger, IT_Bus::NonNegativeInteger, and IT_Bus::PositiveInteger.

const Decimal& IT_Bus::Integer::get_value (  )  const

Return the value of this instance as a Decimal.

Returns:
Decimal value of this instance.

static bool IT_Bus::Integer::is_valid_integer ( const Decimal value  )  [static]

Determines whether the test value is a valid integer.

Parameters:
Decimal value to be tested.
Returns:
bool


Member Data Documentation

virtual void static validate ( const Decimal& value ) const IT_THROW_DECL((IT_Bus Decimal static from_string ( const char* value, bool truncate = false ) IT_THROW_DECL((IT_Bus Decima IT_Bus::Integer::from_signed)(IT_LongLong value) IT_THROW_DECL(()) [static, protected]

Returns a Decimal initialized with the value provided as a longlong.

Parameters:
LongLong value to use in initializing the Decimal.
Returns:
Decimal

Integer ( const char* value, bool truncate = false ) IT_THROW_DECL((IT_Bus Integer ( const String& value, bool truncate = false ) IT_THROW_DECL((IT_Bus Integer ( const Decimal& value, bool truncate = false ) IT_THROW_DECL((IT_Bu IT_Bus::Integer::Integer)(const Integer &copy) IT_THROW_DECL(())

Copy constructor.

Parameters:
Integer value to use in initializing instance.


Generated on Thu Sep 7 11:39:54 2006 for Artix by  doxygen 1.4.7