ObjectStore C++ API Reference

os_integral_type

class os_integral_type : public os_type
This class is part of the ObjectStore metaobject protocol, which provides access to ObjectStore schemas. An instance of this class represents a C++ integer type. This class is derived from os_type. Performing os_type::kind() on an os_integral_type returns one of the following enumerators: os_type::Signed_char, os_type::Unsigned_char, os_type::Signed_short, os_type::Unsigned_short, os_type::Integer, os_type::Unsigned_integer, os_type::Signed_long, or os_type::Unsigned_long.

The types os_int32 and os_boolean, used throughout this manual, are each defined as a signed 32-bit integer type. The type os_unsigned_int32 is defined as an unsigned 32-bit integer type.

os_integral_type::create()

static os_integral_type &create(const char*);
Creates an os_integral_type representing the type with the specified name.

os_integral_type::create_defaulted_char()

static os_integral_type &create_defaulted_char(os_boolean 
signed);
Creates an os_integral_type representing the type char.

os_integral_type::create_int()

static os_integral_type &create_int(os_boolean signed);
Creates an os_integral_type representing the type int or unsigned int.

os_integral_type::create_long()

static os_integral_type &create_long(os_boolean signed);
Creates an os_integral_type representing the type long or unsigned long.

os_integral_type::create_short()

static os_integral_type &create_short(os_boolean signed);
Creates an os_integral_type representing the type short or unsigned short.

os_integral_type::create_signed_char()

static os_integral_type &create_signed_char();
Creates an os_integral_type representing the type signed char.

os_integral_type::create_unsigned_char()

static os_integral_type &create_unsigned_char();
Creates an os_integral_type representing the type unsigned char.

os_integral_type::is_signed()

os_boolean is_signed() const;
Returns 1 if and only if the specified object represents a signed type.



[previous] [next]

Copyright © 1997 Object Design, Inc. All rights reserved.

Updated: 03/31/98 17:25:09