Orocos Real-Time Toolkit  2.6.0
ConfigurationInterfaceI.h
00001 /***************************************************************************
00002   tag: The SourceWorks  Tue Sep 7 00:55:18 CEST 2010  ConfigurationInterfaceI.h
00003 
00004                         ConfigurationInterfaceI.h -  description
00005                            -------------------
00006     begin                : Tue September 07 2010
00007     copyright            : (C) 2010 The SourceWorks
00008     email                : peter@thesourceworks.com
00009 
00010  ***************************************************************************
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU General Public                   *
00013  *   License as published by the Free Software Foundation;                 *
00014  *   version 2 of the License.                                             *
00015  *                                                                         *
00016  *   As a special exception, you may use this file as part of a free       *
00017  *   software library without restriction.  Specifically, if other files   *
00018  *   instantiate templates or use macros or inline functions from this     *
00019  *   file, or you compile this file and link it with other files to        *
00020  *   produce an executable, this file does not by itself cause the         *
00021  *   resulting executable to be covered by the GNU General Public          *
00022  *   License.  This exception does not however invalidate any other        *
00023  *   reasons why the executable file might be covered by the GNU General   *
00024  *   Public License.                                                       *
00025  *                                                                         *
00026  *   This library is distributed in the hope that it will be useful,       *
00027  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00028  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00029  *   Lesser General Public License for more details.                       *
00030  *                                                                         *
00031  *   You should have received a copy of the GNU General Public             *
00032  *   License along with this library; if not, write to the Free Software   *
00033  *   Foundation, Inc., 59 Temple Place,                                    *
00034  *   Suite 330, Boston, MA  02111-1307  USA                                *
00035  *                                                                         *
00036  ***************************************************************************/
00037 
00038 
00039 // -*- C++ -*-
00040 //
00041 // $Id$
00042 
00043 // ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
00044 // TAO and the TAO IDL Compiler have been developed by:
00045 //       Center for Distributed Object Computing
00046 //       Washington University
00047 //       St. Louis, MO
00048 //       USA
00049 //       http://www.cs.wustl.edu/~schmidt/doc-center.html
00050 // and
00051 //       Distributed Object Computing Laboratory
00052 //       University of California at Irvine
00053 //       Irvine, CA
00054 //       USA
00055 //       http://doc.ece.uci.edu/
00056 // and
00057 //       Institute for Software Integrated Systems
00058 //       Vanderbilt University
00059 //       Nashville, TN
00060 //       USA
00061 //       http://www.isis.vanderbilt.edu/
00062 //
00063 // Information about TAO is available at:
00064 //     http://www.cs.wustl.edu/~schmidt/TAO.html
00065 
00066 // TAO_IDL - Generated from
00067 // ../../../ACE_wrappers/TAO/TAO_IDL/be/be_codegen.cpp:1133
00068 
00069 #ifndef ORO_CORBA_CONFIGURATIONINTERFACEI_H_
00070 #define ORO_CORBA_CONFIGURATIONINTERFACEI_H_
00071 
00072 #include "corba.h"
00073 #ifdef CORBA_IS_TAO
00074 #include "ConfigurationInterfaceS.h"
00075 #else
00076 #include "ConfigurationInterfaceC.h"
00077 #endif
00078 
00079 #include "../../ConfigurationInterface.hpp"
00080 #include "../../PropertyBag.hpp"
00081 
00082 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00083 #pragma once
00084 #endif /* ACE_LACKS_PRAGMA_ONCE */
00085 
00086 class  RTT_corba_CConfigurationInterface_i
00087   : public virtual POA_RTT::corba::CConfigurationInterface
00088 {
00089      RTT::ConfigurationInterface* mar;
00090      RTT::PropertyBag* mbag;
00091      PortableServer::POA_var mpoa;
00092 
00093   public:
00094     //Constructor
00095     RTT_corba_CConfigurationInterface_i ( RTT::ConfigurationInterface* ar, PortableServer::POA_ptr the_poa);
00096     RTT_corba_CConfigurationInterface_i ( RTT::PropertyBag* bag, PortableServer::POA_ptr the_poa );
00097   // Destructor
00098   virtual ~RTT_corba_CConfigurationInterface_i (void);
00099 
00100   virtual RTT::corba::CConfigurationInterface_ptr activate_this() {
00101       PortableServer::ObjectId_var oid = mpoa->activate_object(this); // ref count=2
00102       //_remove_ref(); // ref count=1
00103       return _this();
00104   }
00105 
00106   PortableServer::POA_ptr _default_POA();
00107 
00108   ::RTT::base::DataSourceBase::shared_ptr getAttributeDataSource(const std::string& value_name);
00109   ::RTT::base::DataSourceBase::shared_ptr getPropertyDataSource(const std::string& value_name);
00110 
00111   virtual
00112   ::RTT::corba::CConfigurationInterface::CAttributeNames * getAttributeList (
00113       void);
00114 
00115   virtual
00116   ::RTT::corba::CConfigurationInterface::CPropertyNames * getPropertyList (
00117       void);
00118 
00119   virtual
00120   ::CORBA::Any * getAttribute (
00121       const char * name);
00122 
00123   virtual
00124   ::CORBA::Boolean setAttribute (
00125       const char * name,
00126       const ::CORBA::Any & value);
00127 
00128   virtual
00129   ::CORBA::Any * getProperty (
00130       const char * name);
00131 
00132   virtual
00133   ::CORBA::Boolean setProperty (
00134       const char * name,
00135       const ::CORBA::Any & value);
00136 
00137     CORBA::Boolean hasAttribute(const char* name);
00138     CORBA::Boolean isAttributeAssignable(const char* name);
00139   virtual
00140   char * getAttributeType (
00141       const char * name);
00142 
00143   virtual
00144   char * getAttributeTypeName (
00145       const char * name);
00146 
00147   virtual
00148   char * attributeToString (
00149       const char * name);
00150 
00151   virtual
00152   CORBA::Boolean attributeFromString (
00153       const char* name, const char* value
00154     );
00155 
00156     CORBA::Boolean hasProperty(const char* name);
00157   virtual
00158   char * getPropertyType (
00159       const char * name);
00160 
00161   virtual
00162   char * getPropertyTypeName (
00163       const char * name);
00164 
00165   virtual
00166   char * propertyToString (
00167       const char * name);
00168 
00169   virtual
00170   CORBA::Boolean propertyFromString (
00171       const char* name, const char* value
00172     );
00173 };
00174 
00175 
00176 #endif /* CONFIGURATIONINTERFACEI_H_  */
00177