Changeset 8003
- Timestamp:
- 07/09/08 12:03:59 (5 years ago)
- Location:
- ossiedev/trunk/components/amplifier-metadata
- Files:
-
- 2 modified
-
amplifier_metadata.cpp (modified) (7 diffs)
-
main.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/trunk/components/amplifier-metadata/amplifier_metadata.cpp
r8002 r8003 3 3 Copyright 2006 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE amplifier -metadata.5 This file is part of the OSSIE amplifier_metadata. 6 6 7 OSSIE amplifier -metadata is free software; you can redistribute it and/or modify7 OSSIE amplifier_metadata 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 amplifier -metadata is distributed in the hope that it will be useful,12 OSSIE amplifier_metadata 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 amplifier -metadata; if not, write to the Free Software18 along with OSSIE amplifier_metadata; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 … … 24 24 #include <string> 25 25 #include <iostream> 26 #include "amplifier -metadata.h"26 #include "amplifier_metadata.h" 27 27 28 amplifier -metadata_i::amplifier-metadata_i(const char *uuid, omni_condition *condition) : Resource_impl(uuid), component_running(condition)28 amplifier_metadata_i::amplifier_metadata_i(const char *uuid, omni_condition *condition) : Resource_impl(uuid), component_running(condition) 29 29 { 30 30 dataOut_0 = new standardInterfaces_i::complexShort_u("dataOut"); … … 40 40 } 41 41 42 amplifier -metadata_i::~amplifier-metadata_i(void)42 amplifier_metadata_i::~amplifier_metadata_i(void) 43 43 { 44 44 delete dataOut_0; … … 46 46 } 47 47 48 void amplifier -metadata_i::run( void * data )48 void amplifier_metadata_i::run( void * data ) 49 49 { 50 ((amplifier -metadata_i*) data)->run_loop();50 ((amplifier_metadata_i*) data)->run_loop(); 51 51 } 52 52 53 CORBA::Object_ptr amplifier -metadata_i::getPort( const char* portName ) throw (CORBA::SystemException, CF::PortSupplier::UnknownPort)53 CORBA::Object_ptr amplifier_metadata_i::getPort( const char* portName ) throw (CORBA::SystemException, CF::PortSupplier::UnknownPort) 54 54 { 55 std::cout << "amplifier -metadata_i getPort called with : " << portName << std::endl;55 std::cout << "amplifier_metadata_i getPort called with : " << portName << std::endl; 56 56 57 57 CORBA::Object_var p; … … 71 71 } 72 72 73 void amplifier -metadata_i::start() throw (CORBA::SystemException, CF::Resource::StartError)73 void amplifier_metadata_i::start() throw (CORBA::SystemException, CF::Resource::StartError) 74 74 { 75 std::cout << "start called on amplifier -metadata" << std::endl;75 std::cout << "start called on amplifier_metadata" << std::endl; 76 76 } 77 77 78 void amplifier -metadata_i::stop() throw (CORBA::SystemException, CF::Resource::StopError)78 void amplifier_metadata_i::stop() throw (CORBA::SystemException, CF::Resource::StopError) 79 79 { 80 std::cout << "stop called on amplifier -metadata" << std::endl;80 std::cout << "stop called on amplifier_metadata" << std::endl; 81 81 } 82 82 83 void amplifier -metadata_i::releaseObject() throw (CORBA::SystemException, CF::LifeCycle::ReleaseError)83 void amplifier_metadata_i::releaseObject() throw (CORBA::SystemException, CF::LifeCycle::ReleaseError) 84 84 { 85 std::cout << "releaseObject called on amplifier -metadata" << std::endl;85 std::cout << "releaseObject called on amplifier_metadata" << std::endl; 86 86 87 87 component_running->signal(); 88 88 } 89 89 90 void amplifier -metadata_i::initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException)90 void amplifier_metadata_i::initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException) 91 91 { 92 std::cout << "initialize called on amplifier -metadata" << std::endl;92 std::cout << "initialize called on amplifier_metadata" << std::endl; 93 93 } 94 94 95 void amplifier -metadata_i::configure(const CF::Properties& props) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration)95 void amplifier_metadata_i::configure(const CF::Properties& props) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration) 96 96 { 97 std::cout << "configure called on amplifier -metadata" << std::endl;97 std::cout << "configure called on amplifier_metadata" << std::endl; 98 98 99 99 std::cout << "props length : " << props.length() << std::endl; … … 118 118 } 119 119 120 void amplifier -metadata_i::run_loop()120 void amplifier_metadata_i::run_loop() 121 121 { 122 std::cout << "amplifier -metadata's process_data thread started" << std::endl;122 std::cout << "amplifier_metadata's process_data thread started" << std::endl; 123 123 124 124 PortTypes::ShortSequence I_out_0, Q_out_0; -
ossiedev/trunk/components/amplifier-metadata/main.cpp
r8001 r8003 3 3 Copyright 2006 Virginia Polytechnic Institute and State University 4 4 5 This file is part of the OSSIE amplifier -metadata.5 This file is part of the OSSIE amplifier_metadata. 6 6 7 OSSIE amplifier -metadata is free software; you can redistribute it and/or modify7 OSSIE amplifier_metadata 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 amplifier -metadata is distributed in the hope that it will be useful,12 OSSIE amplifier_metadata 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 amplifier -metadata; if not, write to the Free Software18 along with OSSIE amplifier_metadata; if not, write to the Free Software 19 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 20 … … 24 24 #include "ossie/ossieSupport.h" 25 25 26 #include "amplifier -metadata.h"26 #include "amplifier_metadata.h" 27 27 28 28 using namespace std; … … 47 47 cout << "Identifier - " << uuid << " Label - " << label << endl; 48 48 49 amplifier -metadata_i* amp_servant;49 amplifier_metadata_i* amp_servant; 50 50 CF::Resource_var amp_var; 51 51 52 52 // Create the amp component servant and object reference 53 53 54 amp_servant = new amplifier -metadata_i(uuid, component_running);54 amp_servant = new amplifier_metadata_i(uuid, component_running); 55 55 amp_var = amp_servant->_this(); 56 56