00001 // Package : omniIFR 00002 // FixedDef.h Created : 2004/02/22 00003 // Author : Alex Tingle 00004 // 00005 // Copyright (C) 2004 Alex Tingle. 00006 // 00007 // This file is part of the omniIFR application. 00008 // 00009 // omniIFR is free software; you can redistribute it and/or 00010 // modify it under the terms of the GNU Lesser General Public 00011 // License as published by the Free Software Foundation; either 00012 // version 2.1 of the License, or (at your option) any later version. 00013 // 00014 // omniIFR is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 // Lesser General Public License for more details. 00018 // 00019 // You should have received a copy of the GNU Lesser General Public 00020 // License along with this library; if not, write to the Free Software 00021 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 // 00023 #ifndef OMNIIFR__FIXEDDEF_H 00024 #define OMNIIFR__FIXEDDEF_H 00025 00026 #include "idltype.h" 00027 00028 namespace Omniifr { 00029 00030 class Repository_impl; 00031 00032 class FixedDef_impl : 00033 public virtual POA_CORBA::FixedDef, 00034 public IDLType_impl 00035 { 00036 public: // CORBA attributes 00037 CORBA::UShort digits() {return _digits;} 00038 void digits(CORBA::UShort v){checkReadonly(); _digits=v;} 00039 CORBA::Short scale() {return _scale;} 00040 void scale(CORBA::Short v) {checkReadonly(); _scale=v;} 00041 public: // CORBA interface methods (from IRObject) 00042 CORBA::DefinitionKind def_kind() {return CORBA::dk_Fixed;} 00043 public: // CORBA attributes (from IDLType) 00044 CORBA::TypeCode_ptr type(); 00045 00046 private: 00047 CORBA::UShort _digits; 00048 CORBA::Short _scale; 00049 public: 00050 FixedDef_impl( 00051 CORBA::UShort digits, 00052 CORBA::Short scale 00053 ); 00054 virtual ~FixedDef_impl() {} 00055 void uncheckedDestroy(); 00056 void output(ostream &os); 00057 }; 00058 00059 } // end namespace Omniifr 00060 00061 #endif // OMNIIFR__FIXEDDEF_H