#include <it_bus/integer.h>
Inheritance diagram for IT_Bus::NonNegativeInteger:
This class stores the value as a Decimal value.
Definition at line 953 of file integer.h.
Public Types | |
typedef IT_Reflect::ValueRef< IT_Bus::NonNegativeInteger > | IT_ReflectionType |
Public Member Functions | |
NonNegativeInteger () throw (()) | |
No argument constructor. | |
NonNegativeInteger (short value) throw ((IT_Bus::Exception)) | |
Constructor. | |
NonNegativeInteger (unsigned short value) throw (()) | |
Constructor. | |
NonNegativeInteger (int value) throw ((IT_Bus::Exception)) | |
Constructor. | |
NonNegativeInteger (unsigned int value) throw (()) | |
Constructor. | |
NonNegativeInteger (long value) throw ((IT_Bus::Exception)) | |
Constructor. | |
NonNegativeInteger (unsigned long value) throw (()) | |
Constructor. | |
NonNegativeInteger (IT_LongLong value) throw ((IT_Bus::Exception)) | |
Constructor. | |
NonNegativeInteger (IT_ULongLong value) throw (()) | |
Constructor. | |
NonNegativeInteger (const char *value, bool truncate=false) throw ((IT_Bus::Exception)) | |
Constructor. | |
NonNegativeInteger (const String &value, bool truncate=false) throw ((IT_Bus::Exception)) | |
Constructor. | |
NonNegativeInteger (const Decimal &value, bool truncate=false) throw ((IT_Bus::Exception)) | |
Constructor. | |
NonNegativeInteger (const Integer ©) throw ((IT_Bus::Exception)) | |
Constructor. | |
NonNegativeInteger (const NonNegativeInteger ©) throw (()) | |
Copy constructor. | |
NonNegativeInteger & | operator= (short value) throw ((IT_Bus::Exception)) |
Assignment operator from short. | |
NonNegativeInteger & | operator= (unsigned short value) throw (()) |
Assignment operator from unsigned short. | |
NonNegativeInteger & | operator= (int value) throw ((IT_Bus::Exception)) |
Assignment operator from int. | |
NonNegativeInteger & | operator= (unsigned int value) throw (()) |
Assignment operator from unsigned int. | |
NonNegativeInteger & | operator= (long value) throw ((IT_Bus::Exception)) |
Assignment operator from long. | |
NonNegativeInteger & | operator= (unsigned long value) throw (()) |
Assignment operator from unsigned long. | |
NonNegativeInteger & | operator= (IT_LongLong value) throw ((IT_Bus::Exception)) |
Assignment operator from longlong. | |
NonNegativeInteger & | operator= (IT_ULongLong value) throw (()) |
Assignment operator from unsigned longlong. | |
NonNegativeInteger & | operator= (const Integer &rhs) throw ((IT_Bus::Exception)) |
Assignment operator from Integer. | |
NonNegativeInteger & | operator= (const NonNegativeInteger &rhs) throw (()) |
Assignment operator from NonNegativeInteger. | |
virtual AnyType & | copy (const AnyType ©) |
Returns a reference to an AnyType that is a copy of the AnyType parameter. | |
virtual const QName & | get_type () const |
Returns the IT_Bus::QName for the type. | |
virtual IT_Reflect::Reflection * | get_reflection () throw ((IT_Reflect::ReflectException)) |
Return an instance of the IT_Reflect::Reflection type that encapsulates this instance. | |
virtual const IT_Reflect::Reflection * | get_reflection () const throw ((IT_Reflect::ReflectException)) |
Return an instance of the IT_Reflect::Reflection type that encapsulates this instance. | |
Static Public Member Functions | |
static bool | is_valid_non_negative_integer (const Decimal &value) throw (()) |
Checks whether the test value is a valid non-negative integer. | |
Protected Member Functions | |
virtual void | validate (const Decimal &value) const throw ((IT_Bus::Exception)) |
Checks whether the test value is a valid non-negative integer. | |
Static Protected Member Functions | |
static void | validate_non_negative_integer (const Decimal &value) throw ((IT_Bus::Exception)) |
Checks whether the test value is a valid non-negative integer. |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | short | value | ) | throw ((IT_Bus::Exception)) |
Constructor.
short | value to use in initializing instance. |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | unsigned short | value | ) | throw (()) |
Constructor.
unsigned | short value to use in initializing instance. |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | int | value | ) | throw ((IT_Bus::Exception)) |
Constructor.
int | value to use in initializing instance. |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | unsigned int | value | ) | throw (()) |
Constructor.
unsigned | int value to use in initializing instance. |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | long | value | ) | throw ((IT_Bus::Exception)) |
Constructor.
long | value to use in initializing instance. |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | unsigned long | value | ) | throw (()) |
Constructor.
unsigned | long value to use in initializing instance. |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | IT_LongLong | value | ) | throw ((IT_Bus::Exception)) |
Constructor.
longlong | value to use in initializing instance. |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | IT_ULongLong | value | ) | throw (()) |
Constructor.
unsigned | long value to use in initializing instance. |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | const char * | value, | |
bool | truncate = false | |||
) | throw ((IT_Bus::Exception)) |
Constructor.
Pointer | to character array value to use in initializing instance. | |
bool | indicator of whether to trucate the value at a possible decimal point |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | const String & | value, | |
bool | truncate = false | |||
) | throw ((IT_Bus::Exception)) |
Constructor.
String | value to use in initializing instance. | |
bool | indicator of whether to trucate the value at a possible decimal point |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | const Decimal & | value, | |
bool | truncate = false | |||
) | throw ((IT_Bus::Exception)) |
Constructor.
Decimal | value to use in initializing instance. | |
bool | indicator of whether to trucate the value at a possible decimal point |
IT_Bus::NonNegativeInteger::NonNegativeInteger | ( | const Integer & | copy | ) | throw ((IT_Bus::Exception)) |
Constructor.
integer | value to use in initializing instance. |
static bool IT_Bus::NonNegativeInteger::is_valid_non_negative_integer | ( | const Decimal & | value | ) | throw (()) [static] |
Checks whether the test value is a valid non-negative integer.
Returns a reference to an AnyType that is a copy of the AnyType parameter.
Derived classes override this method, providing an appropriate implementation. In this base class, this method is not supported; an exception is always thrown.
AnyType | to be copied. |
IT_Bus::Exception | with message "Copy not supported" |
Reimplemented from IT_Bus::Integer.
Reimplemented in IT_Bus::PositiveInteger.
virtual const QName& IT_Bus::NonNegativeInteger::get_type | ( | ) | const [virtual] |
Returns the IT_Bus::QName for the type.
Derived subclasses implement this method and return their QName.
Reimplemented from IT_Bus::Integer.
Reimplemented in IT_Bus::PositiveInteger.
virtual IT_Reflect::Reflection* IT_Bus::NonNegativeInteger::get_reflection | ( | ) | throw ((IT_Reflect::ReflectException)) [virtual] |
Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
IT_Reflect::ReflectException |
Reimplemented from IT_Bus::Integer.
Reimplemented in IT_Bus::PositiveInteger.
virtual const IT_Reflect::Reflection* IT_Bus::NonNegativeInteger::get_reflection | ( | ) | const throw ((IT_Reflect::ReflectException)) [virtual] |
Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
IT_Reflect::ReflectException |
Reimplemented from IT_Bus::Integer.
Reimplemented in IT_Bus::PositiveInteger.
virtual void IT_Bus::NonNegativeInteger::validate | ( | const Decimal & | value | ) | const throw ((IT_Bus::Exception)) [protected, virtual] |
Checks whether the test value is a valid non-negative integer.
This method invokes the validate_non_negative_integer() method.
IT_Bus::Exception |
Reimplemented from IT_Bus::Integer.
Reimplemented in IT_Bus::PositiveInteger.
static void IT_Bus::NonNegativeInteger::validate_non_negative_integer | ( | const Decimal & | value | ) | throw ((IT_Bus::Exception)) [static, protected] |
Checks whether the test value is a valid non-negative integer.
IT_Bus::Exception | with the message "Out of range" if the test value is < 0. |