TOC PREV NEXT INDEX


Enumerated Type


Classes generated for enumerated types contain setValue methods that allow the contained value member variable to be set. Two overloaded forms of this method are present: one that takes the enumerated identifier as a number and one that takes a string representation of the value. A method is also generated to allow the value to be retrieved as a number (getValue) or as a string (toString).
The signatures for these methods is as follows:
	inline OSUINT16 getValue () const { return value; }
	int setValue (OSUINT16 enumval);
	int setValue (const OSUTF8CHAR* strval);
	const OSUTF8CHAR* toString () const;


Copyright © Objective Systems 2002-2007
This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included.

Objective Systems, Inc.

55 Dowlin Forge Road
Exton, Pennsylvania 19341
http://www.obj-sys.com
Phone: (484) 875-9841
Toll-free: (877) 307-6855 (US only)
Fax: (484) 875-9830
info@obj-sys.com

TOC PREV NEXT INDEX