Changeset 6164

Show
Ignore:
Timestamp:
01/17/08 13:59:03 (5 years ago)
Author:
balister
Message:

Update to work with Resource_impl and rename functions for consistency with similar components.

Location:
components/FileInput/trunk/FileInput
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • components/FileInput/trunk/FileInput/FileInput.cpp

    r2571 r6164  
    11/**************************************************************************** 
    22 
    3 Copyright 2006 Virginia Polytechnic Institute and State University 
     3Copyright 2006 2008 Virginia Polytechnic Institute and State University 
    44 
    55This file is part of the OSSIE FileInput. 
     
    6767 
    6868    // 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); 
    7070    processing_thread->start(); 
    7171 
     
    149149} 
    150150 
    151 void FileInput_i::run_data_send() 
     151void FileInput_i::query (CF::Properties & configProperties) throw (CORBA::SystemException, CF::UnknownProperties) 
     152{ 
     153} 
     154 
     155void FileInput_i::runTest (CORBA::ULong _number, CF::Properties & _props) throw (CORBA::SystemException, CF::TestableObject::UnknownTest, CF::UnknownProperties) 
     156{ 
     157} 
     158 
     159void FileInput_i::process_data() 
    152160{ 
    153161    DEBUG(3, FileInput, "FileInput process_data thread started") 
  • components/FileInput/trunk/FileInput/FileInput.h

    r2983 r6164  
    11/**************************************************************************** 
    22 
    3 Copyright 2006 Virginia Polytechnic Institute and State University 
     3Copyright 2006, 2008 Virginia Polytechnic Institute and State University 
    44 
    55This file is part of the OSSIE FileInput. 
     
    3333 
    3434#include "ossie/cf.h" 
     35#include "ossie/PortTypes.h" 
     36#include "ossie/Resource_impl.h" 
    3537 
    36  
    37 #include "ossie/PortTypes.h" 
    38  
    39 #include "standardinterfaces/complexShort.h" 
    4038#include "standardinterfaces/complexShort_u.h" 
    41  
    42  
    43 #include "ossie/Resource_impl.h" 
    44 class FileInput_i; 
    4539 
    4640class FileInput_i : public virtual Resource_impl 
     
    5044 
    5145        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(); }; 
    5347 
    5448        void start() throw (CF::Resource::StartError, CORBA::SystemException); 
     
    6155        void initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException); 
    6256        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); 
    6360 
    6461 
     
    6764        FileInput_i(const FileInput_i&); 
    6865    
    69         void run_data_send(); 
     66        void process_data(); 
    7067 
    7168        CF::Resource_var myObjectRef;