// Filename: cppSimpleType.h // Created by: drose (19Oct99) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda 3d // Software license. You should have received a copy of this license // along with this source code; you will also find a current copy of // the license at http://www.panda3d.org/license.txt . // // To contact the maintainers of this program write to // panda3d@yahoogroups.com . // //////////////////////////////////////////////////////////////////// #ifndef CPPSIMPLETYPE_H #define CPPSIMPLETYPE_H #include #include "cppType.h" /////////////////////////////////////////////////////////////////// // Class : CPPSimpleType // Description : //////////////////////////////////////////////////////////////////// class CPPSimpleType : public CPPType { public: enum Type { T_bool, T_char, T_int, T_float, T_double, T_void, T_unknown, }; enum Flags { F_long = 0x001, F_longlong = 0x002, F_short = 0x004, F_unsigned = 0x008, F_signed = 0x010, }; CPPSimpleType(Type type, int flags = 0); Type _type; int _flags; virtual bool is_tbd() const; virtual string get_preferred_name() const; virtual void output(ostream &out, int indent_level, CPPScope *scope, bool complete) const; virtual SubType get_subtype() const; virtual CPPSimpleType *as_simple_type(); protected: virtual bool is_equal(const CPPDeclaration *other) const; virtual bool is_less(const CPPDeclaration *other) const; }; #endif