Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

AttributeDef.h

Go to the documentation of this file.
00001 //                            Package   : omniIFR
00002 //  AttributeDef.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__ATTRIBUTEDEF_H
00024 #define OMNIIFR__ATTRIBUTEDEF_H
00025 
00026 #include "Contained.h"
00027 #include "Dependency.h"
00028 
00029 namespace Omniifr {
00030 
00031 class IDLType_impl;
00032 
00033 class AttributeDef_impl :
00034   public virtual POA_CORBA::AttributeDef,
00035   public         Contained_impl
00036 {
00037 public: // CORBA attributes
00038   TypeCode_ptr  type();
00039   IDLType_ptr   type_def();
00040   void          type_def(IDLType_ptr);
00041   AttributeMode mode()                  {return _mode;}
00042   void          mode(AttributeMode v)   {checkReadonly(); _mode=v;}
00043 public: // CORBA interface methods (from IRObject)
00044   DefinitionKind def_kind()             {return CORBA::dk_Attribute;}
00045 public: // CORBA interface methods (from Contained)
00046   CORBA::Contained::Description* describe();
00047 
00048 private:
00049   Dependency1<IDLType> _type_def;
00050   AttributeMode        _mode;
00051 public:
00052   AttributeDef_impl():_type_def(this),_mode(CORBA::ATTR_NORMAL){}
00053   virtual ~AttributeDef_impl() {}
00054   void uncheckedDestroy();
00055   void reincarnate(const PersistNode& node);
00056   void output(ostream &os);
00057 };
00058 
00059 } // end namespace Omniifr
00060 
00061 #endif // OMNIIFR__ATTRIBUTEDEF_H

Generated on Fri Mar 4 13:03:22 2005 for OmniIFR by  doxygen 1.4.1