/**************************************************************************** Copyright 2006 Virginia Polytechnic Institute and State University This file is part of the OSSIE GenericAssControl. OSSIE GenericAssControl is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. OSSIE GenericAssControl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OSSIE GenericAssControl; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ****************************************************************************/ #include #include "ossie/cf.h" #include "ossie/PortTypes.h" #include "ossie/Resource_impl.h" #include "GenericAssControl.h" // Declaration for provides ports #ifndef dataIn_Resource_i_H #define dataIn_Resource_i_H class dataIn_Resource_i : public POA_CF::Resource { public: dataIn_Resource_i(GenericAssControl_i *_genericasscontrol); void start(); void stop(); private: GenericAssControl_i *genericasscontrol; }; #endif // Declaration for uses ports #ifndef dataOut_Resource_i_H #define dataOut_Resource_i_H class dataOut_Resource_i : public virtual POA_CF::Port { public: dataOut_Resource_i(GenericAssControl_i *_genericasscontrol); void connectPort(CORBA::Object_ptr connection, const char* connectionId); void disconnectPort(const char* connectionId); //Port Information Storage Class class PortInfo { public: PortInfo(CF::Resource_var _port, const char *&_id) { port_var = _port; connectionId = _id; }; PortInfo(const PortInfo &cp) { port_var = cp.port_var; connectionId = cp.connectionId; }; CF::Resource_var port_var; std::string connectionId; private: PortInfo(); //no default constructor }; std::vector get_ports(); private: std::vector outPorts; GenericAssControl_i *genericasscontrol; }; #endif