Changeset 6164
- Timestamp:
- 01/17/08 13:59:03 (5 years ago)
- Location:
- components/FileInput/trunk/FileInput
- Files:
-
- 2 modified
-
FileInput.cpp (modified) (3 diffs)
-
FileInput.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/FileInput/trunk/FileInput/FileInput.cpp
r2571 r6164 1 1 /**************************************************************************** 2 2 3 Copyright 2006 Virginia Polytechnic Institute and State University3 Copyright 2006 2008 Virginia Polytechnic Institute and State University 4 4 5 5 This file is part of the OSSIE FileInput. … … 67 67 68 68 // Create and start the thread that reads the file and send the data 69 processing_thread = new omni_thread( do_run_data_send, (void *) this);69 processing_thread = new omni_thread(run, (void *) this); 70 70 processing_thread->start(); 71 71 … … 149 149 } 150 150 151 void FileInput_i::run_data_send() 151 void FileInput_i::query (CF::Properties & configProperties) throw (CORBA::SystemException, CF::UnknownProperties) 152 { 153 } 154 155 void FileInput_i::runTest (CORBA::ULong _number, CF::Properties & _props) throw (CORBA::SystemException, CF::TestableObject::UnknownTest, CF::UnknownProperties) 156 { 157 } 158 159 void FileInput_i::process_data() 152 160 { 153 161 DEBUG(3, FileInput, "FileInput process_data thread started") -
components/FileInput/trunk/FileInput/FileInput.h
r2983 r6164 1 1 /**************************************************************************** 2 2 3 Copyright 2006 Virginia Polytechnic Institute and State University3 Copyright 2006, 2008 Virginia Polytechnic Institute and State University 4 4 5 5 This file is part of the OSSIE FileInput. … … 33 33 34 34 #include "ossie/cf.h" 35 #include "ossie/PortTypes.h" 36 #include "ossie/Resource_impl.h" 35 37 36 37 #include "ossie/PortTypes.h"38 39 #include "standardinterfaces/complexShort.h"40 38 #include "standardinterfaces/complexShort_u.h" 41 42 43 #include "ossie/Resource_impl.h"44 class FileInput_i;45 39 46 40 class FileInput_i : public virtual Resource_impl … … 50 44 51 45 void post_constructor(CF::Resource_ptr ref) { myObjectRef = ref; }; 52 static void do_run_data_send(void *data) { ((FileInput_i *)data)->run_data_send(); };46 static void run(void *data) { ((FileInput_i *)data)->process_data(); }; 53 47 54 48 void start() throw (CF::Resource::StartError, CORBA::SystemException); … … 61 55 void initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException); 62 56 void configure(const CF::Properties&) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration); 57 void query (CF::Properties & configProperties) throw (CORBA::SystemException, CF::UnknownProperties); 58 59 void runTest (CORBA::ULong _number, CF::Properties & _props) throw (CORBA::SystemException, CF::TestableObject::UnknownTest, CF::UnknownProperties); 63 60 64 61 … … 67 64 FileInput_i(const FileInput_i&); 68 65 69 void run_data_send();66 void process_data(); 70 67 71 68 CF::Resource_var myObjectRef;