Changeset 3809
- Timestamp:
- 05/17/07 13:32:03 (6 years ago)
- Location:
- components/USRP_TX_Control/branches/USRP_Commander
- Files:
-
- 4 modified
- 5 moved
-
.ignore (modified) (1 diff)
-
Makefile.am (modified) (1 diff)
-
USRP_Commander.cpp (moved) (moved from components/USRP_TX_Control/branches/USRP_Commander/USRP_TX_Control.cpp) (7 diffs)
-
USRP_Commander.h (moved) (moved from components/USRP_TX_Control/branches/USRP_Commander/USRP_TX_Control.h) (5 diffs)
-
USRP_Commander.prf.xml (moved) (moved from components/USRP_TX_Control/branches/USRP_Commander/USRP_TX_Control.prf.xml)
-
USRP_Commander.scd.xml (moved) (moved from components/USRP_TX_Control/branches/USRP_Commander/USRP_TX_Control.scd.xml)
-
USRP_Commander.spd.xml (moved) (moved from components/USRP_TX_Control/branches/USRP_Commander/USRP_TX_Control.spd.xml) (2 diffs)
-
configure.ac (modified) (1 diff)
-
main.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/USRP_TX_Control/branches/USRP_Commander/.ignore
r3441 r3809 1 USRP_ TX_Control1 USRP_Commander 2 2 aclocal.m4 3 3 install-sh -
components/USRP_TX_Control/branches/USRP_Commander/Makefile.am
r3441 r3809 1 1 AM_CXXFLAGS = -Wall 2 2 3 bin_PROGRAMS = USRP_ TX_Control3 bin_PROGRAMS = USRP_Commander 4 4 5 USRP_ TX_Control_SOURCES = USRP_TX_Control.cpp USRP_TX_Control.h main.cpp5 USRP_Commander_SOURCES = USRP_Commander.cpp USRP_Commander.h main.cpp 6 6 7 ossieName = USRP_ TX_Control7 ossieName = USRP_Commander 8 8 xmldir = $(prefix)/xml/$(ossieName) 9 dist_xml_DATA = USRP_ TX_Control.prf.xml USRP_TX_Control.scd.xml \10 USRP_ TX_Control.spd.xml9 dist_xml_DATA = USRP_Commander.prf.xml USRP_Commander.scd.xml \ 10 USRP_Commander.spd.xml 11 11 -
components/USRP_TX_Control/branches/USRP_Commander/USRP_Commander.cpp
r3441 r3809 1 1 /**************************************************************************** 2 2 3 Copyright 200 6Virginia Polytechnic Institute and State University3 Copyright 2007 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE USRP_ TX_Control.5 This file is part of the OSSIE USRP_Commander. 6 6 7 OSSIE USRP_ TX_Controlis free software; you can redistribute it and/or modify7 OSSIE USRP_Commander is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 2 of the License, or 10 10 (at your option) any later version. 11 11 12 OSSIE USRP_ TX_Controlis distributed in the hope that it will be useful,12 OSSIE USRP_Commander is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 16 16 17 17 You should have received a copy of the GNU General Public License 18 along with OSSIE USRP_ TX_Control; if not, write to the Free Software18 along with OSSIE USRP_Commander; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 … … 29 29 #include "ossie/debug.h" 30 30 31 #include "USRP_ TX_Control.h"31 #include "USRP_Commander.h" 32 32 33 33 #include "ossie/Resource_impl.h" 34 34 35 USRP_ TX_Control_i::USRP_TX_Control_i(const char *uuid, omni_condition *condition) : Resource_impl(uuid), component_running(condition)35 USRP_Commander_i::USRP_Commander_i(const char *uuid, omni_condition *condition) : Resource_impl(uuid), component_running(condition) 36 36 { 37 37 TXControl = new standardInterfaces_i::TX_Control_u("TX_Control"); … … 39 39 } 40 40 41 CORBA::Object_ptr USRP_ TX_Control_i::getPort( const char* portName ) throw (CORBA::SystemException, CF::PortSupplier::UnknownPort)41 CORBA::Object_ptr USRP_Commander_i::getPort( const char* portName ) throw (CORBA::SystemException, CF::PortSupplier::UnknownPort) 42 42 { 43 DEBUG(3, USRP_ TX_Control, "getPort called with : " << portName)43 DEBUG(3, USRP_Commander, "getPort called with : " << portName) 44 44 45 45 CORBA::Object_var p; … … 59 59 } 60 60 61 void USRP_ TX_Control_i::start() throw (CORBA::SystemException, CF::Resource::StartError)61 void USRP_Commander_i::start() throw (CORBA::SystemException, CF::Resource::StartError) 62 62 { 63 DEBUG(3, USRP_ TX_Control, "start called on USRP_TX_Control")63 DEBUG(3, USRP_Commander, "start called on USRP_Commander") 64 64 65 65 CF::Resource_var r = data_control->getRef(); … … 81 81 } 82 82 83 void USRP_ TX_Control_i::stop() throw (CORBA::SystemException, CF::Resource::StopError)83 void USRP_Commander_i::stop() throw (CORBA::SystemException, CF::Resource::StopError) 84 84 { 85 DEBUG(3, USRP_ TX_Control, "stop called on USRP_TX_Control")85 DEBUG(3, USRP_Commander, "stop called on USRP_Commander") 86 86 87 87 CF::Resource_var r = data_control->getRef(); … … 92 92 } 93 93 94 void USRP_ TX_Control_i::releaseObject() throw (CORBA::SystemException, CF::LifeCycle::ReleaseError)94 void USRP_Commander_i::releaseObject() throw (CORBA::SystemException, CF::LifeCycle::ReleaseError) 95 95 { 96 DEBUG(3, USRP_ TX_Control, "releaseObject called on USRP_TX_Control")96 DEBUG(3, USRP_Commander, "releaseObject called on USRP_Commander") 97 97 98 98 component_running->signal(); 99 99 } 100 100 101 void USRP_ TX_Control_i::initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException)101 void USRP_Commander_i::initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException) 102 102 { 103 DEBUG(3, USRP_ TX_Control, "initialize called on USRP_TX_Control")103 DEBUG(3, USRP_Commander, "initialize called on USRP_Commander") 104 104 } 105 105 106 void USRP_ TX_Control_i::configure(const CF::Properties& props) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration)106 void USRP_Commander_i::configure(const CF::Properties& props) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration) 107 107 { 108 DEBUG(3, USRP_ TX_Control, "configure called on USRP_TX_Control")108 DEBUG(3, USRP_Commander, "configure called on USRP_Commander") 109 109 110 DEBUG(3, USRP_ TX_Control, "props length : " << props.length())110 DEBUG(3, USRP_Commander, "props length : " << props.length()) 111 111 112 112 for (unsigned int i = 0; i <props.length(); i++) { -
components/USRP_TX_Control/branches/USRP_Commander/USRP_Commander.h
r3441 r3809 1 1 /**************************************************************************** 2 2 3 Copyright 200 6Virginia Polytechnic Institute and State University3 Copyright 2007 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE USRP_ TX_Control.5 This file is part of the OSSIE USRP_Commander. 6 6 7 OSSIE USRP_ TX_Controlis free software; you can redistribute it and/or modify7 OSSIE USRP_Commander is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 2 of the License, or 10 10 (at your option) any later version. 11 11 12 OSSIE USRP_ TX_Controlis distributed in the hope that it will be useful,12 OSSIE USRP_Commander is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 16 16 17 17 You should have received a copy of the GNU General Public License 18 along with OSSIE USRP_ TX_Control; if not, write to the Free Software18 along with OSSIE USRP_Commander; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 … … 22 22 23 23 24 #ifndef USRP_ TX_CONTROL_IMPL_H25 #define USRP_ TX_CONTROL_IMPL_H24 #ifndef USRP_COMMANDER_IMPL_H 25 #define USRP_COMMANDER_IMPL_H 26 26 27 27 #include <stdlib.h> … … 36 36 #include "ossie/Resource_impl.h" 37 37 38 class USRP_ TX_Control_i : public virtual Resource_impl38 class USRP_Commander_i : public virtual Resource_impl 39 39 { 40 40 public: 41 USRP_ TX_Control_i(const char *uuid, omni_condition *sem);41 USRP_Commander_i(const char *uuid, omni_condition *sem); 42 42 43 43 void start() throw (CF::Resource::StartError, CORBA::SystemException); … … 53 53 54 54 private: 55 USRP_ TX_Control_i();56 USRP_ TX_Control_i(USRP_TX_Control_i&);55 USRP_Commander_i(); 56 USRP_Commander_i(USRP_Commander_i&); 57 57 58 58 omni_condition *component_running; //for component shutdown -
components/USRP_TX_Control/branches/USRP_Commander/USRP_Commander.spd.xml
r3441 r3809 3 3 <!--Created with OSSIE WaveDev Beta Version 0.6.0b--> 4 4 <!--Powered by Python--> 5 <softpkg type="sca_compliant" name="USRP_ TX_Control" id="DCE:aff94530-6ab7-11db-bd91-0004236abd3a">5 <softpkg type="sca_compliant" name="USRP_Commander" id="DCE:aff94530-6ab7-11db-bd91-0004236abd3a"> 6 6 <title/> 7 7 <author> … … 11 11 </author> 12 12 <propertyfile type="PRF"> 13 <localfile name="xml/USRP_ TX_Control/USRP_TX_Control.prf.xml"/>13 <localfile name="xml/USRP_Commander/USRP_Commander.prf.xml"/> 14 14 </propertyfile> 15 15 <descriptor> 16 <localfile name="xml/USRP_ TX_Control/USRP_TX_Control.scd.xml"/>16 <localfile name="xml/USRP_Commander/USRP_Commander.scd.xml"/> 17 17 </descriptor> 18 18 <implementation id="DCE:affa18de-6ab7-11db-91a5-0004236abd3a" aepcompliance="aep_compliant"> 19 19 <description>Default Description</description> 20 20 <code type="Executable"> 21 <localfile name="bin/USRP_ TX_Control"/>21 <localfile name="bin/USRP_Commander"/> 22 22 </code> 23 23 <processor name="x86"/> -
components/USRP_TX_Control/branches/USRP_Commander/configure.ac
r3441 r3809 1 AC_INIT( TX_RandomBits, 0.6.0)1 AC_INIT(USRP_Commander, 0.6.0) 2 2 AM_INIT_AUTOMAKE 3 3 -
components/USRP_TX_Control/branches/USRP_Commander/main.cpp
r3441 r3809 1 1 /**************************************************************************** 2 2 3 Copyright 200 6Virginia Polytechnic Institute and State University3 Copyright 2007 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE USRP_ TX_Control.5 This file is part of the OSSIE USRP_Commander. 6 6 7 OSSIE USRP_ TX_Controlis free software; you can redistribute it and/or modify7 OSSIE USRP_Commander is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 2 of the License, or 10 10 (at your option) any later version. 11 11 12 OSSIE USRP_ TX_Controlis distributed in the hope that it will be useful,12 OSSIE USRP_Commander is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 16 16 17 17 You should have received a copy of the GNU General Public License 18 along with OSSIE USRP_ TX_Control; if not, write to the Free Software18 along with OSSIE USRP_Commander; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 … … 26 26 #include "ossie/debug.h" 27 27 28 #include "USRP_ TX_Control.h"28 #include "USRP_Commander.h" 29 29 30 30 int main(int argc, char* argv[]) … … 45 45 char *label = argv[2]; 46 46 47 DEBUG(3, USRP_ TX_Control, "Identifier - " << uuid << " Label - " << label)47 DEBUG(3, USRP_Commander, "Identifier - " << uuid << " Label - " << label) 48 48 49 USRP_ TX_Control_i* usrp_tx_control_servant;50 CF::Resource_var usrp_ tx_control_var;49 USRP_Commander_i* usrp_commander_servant; 50 CF::Resource_var usrp_commander_var; 51 51 52 // Create the usrp_ tx_controlcomponent servant and object reference52 // Create the usrp_commander component servant and object reference 53 53 54 usrp_ tx_control_servant = new USRP_TX_Control_i(uuid, component_running);55 usrp_ tx_control_var = usrp_tx_control_servant->_this();54 usrp_commander_servant = new USRP_Commander_i(uuid, component_running); 55 usrp_commander_var = usrp_commander_servant->_this(); 56 56 57 orb->bind_object_to_name((CORBA::Object_ptr) usrp_ tx_control_var, label);57 orb->bind_object_to_name((CORBA::Object_ptr) usrp_commander_var, label); 58 58 59 59 // This bit is ORB specific