ObjectStore C++ API Reference

os_enumerator_literal

This class is part of the ObjectStore metaobject protocol, which provides access to ObjectStore schemas. An instance of this class represents a C++ enumerator.

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_enumerator_literal::create()

static os_enumerator_literal& create(const char*, os_int32); 
Creates an os_enumerator_literal of the specified name and value.

os_enumerator_literal::set name()

void set_name(const char*);
Sets the name of the specified enumerator.

os_enumerator_literal::set_value()

void set_value(os_int32);
Sets the integer value of the specified enumerator.

os_enumerator_literal::get_name()

const char *get_name() const;
Returns the name of the specified enumerator.

os_enumerator_literal::get_value()

os_int32 get_value() const;
Returns the integer value of the specified enumerator.



[previous] [next]

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

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