00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "FixedDef.h"
00024
00025 #include "Repository.h"
00026 #include "PersistNode.h"
00027
00028 namespace Omniifr {
00029
00030 TypeCode_ptr FixedDef_impl::type()
00031 {
00032 return Repository_impl::inst()._orb->create_fixed_tc(_digits,_scale);
00033 }
00034
00035 FixedDef_impl::FixedDef_impl(
00036 CORBA::UShort digits,
00037 CORBA::Short scale
00038 ) :
00039 _digits(digits),
00040 _scale(scale)
00041 {
00042 Repository_impl::inst().addAnonymous(this);
00043 }
00044
00045 void FixedDef_impl::uncheckedDestroy()
00046 {
00047 Repository_impl::inst().removeAnonymous(this);
00048 }
00049
00050 void FixedDef_impl::output(ostream &os)
00051 {
00052 os<<"FixedDef"<<PersistNode::_separator;
00053 outputOid(os);
00054 os<<" digits="<<_digits<<
00055 " scale="<<_scale<<
00056 " ;;\n";
00057 }
00058
00059 }