root/ossiedev/branches/jeongo9/components/liquid-components/include/complexFloat2Short.h @ 10731

Revision 10731, 2.4 KB (checked in by jeongo9, 2 years ago)

add liquid components

Line 
1/****************************************************************************
2
3Copyright 2010 by your_name_or_organization, all rights reserved.
4
5****************************************************************************/
6
7
8#ifndef COMPLEXFLOAT2SHORT_IMPL_H
9#define COMPLEXFLOAT2SHORT_IMPL_H
10
11#include <stdlib.h>
12#include "ossie/cf.h"
13#include "ossie/PortTypes.h"
14#include "ossie/Resource_impl.h"
15#include "ossie/debug.h"
16
17
18#include "standardinterfaces/complexFloat.h"
19#include "standardinterfaces/complexShort.h"
20#include "standardinterfaces/complexShort_u.h"
21#include "standardinterfaces/complexFloat_p.h"
22
23/** \brief
24 *
25 *
26 */
27class complexFloat2Short_i : public virtual Resource_impl
28{
29  public:
30    /// Initializing constructor
31    complexFloat2Short_i(const char *uuid, omni_condition *sem);
32
33    /// Destructor
34    ~complexFloat2Short_i(void);
35
36    /// Static function for omni thread
37    static void Run( void * data );
38
39    ///
40    void start() throw (CF::Resource::StartError, CORBA::SystemException);
41
42    ///
43    void stop() throw (CF::Resource::StopError, CORBA::SystemException);
44
45    ///
46    CORBA::Object_ptr getPort( const char* portName )
47        throw (CF::PortSupplier::UnknownPort, CORBA::SystemException);
48
49    ///
50    void releaseObject() throw (CF::LifeCycle::ReleaseError, CORBA::SystemException);
51
52    ///
53    void initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException);
54
55    /// Query properties from .prf.xml
56    void query(CF::Properties&)
57        throw (CORBA::SystemException,
58                CF::UnknownProperties);
59
60    /// Configures properties read from .prf.xml
61    void configure(const CF::Properties&)
62        throw (CORBA::SystemException,
63            CF::PropertySet::InvalidConfiguration,
64            CF::PropertySet::PartialConfiguration);
65
66
67  private:
68    /// Disallow default constructor
69    complexFloat2Short_i();
70
71    /// Disallow copy constructor
72    complexFloat2Short_i(complexFloat2Short_i&);
73
74    /// Main signal processing method
75    void ProcessData();
76    bool continue_processing();
77    volatile bool thread_started;
78    omni_mutex processing_mutex;
79   
80    omni_condition *component_running;  ///< for component shutdown
81    omni_thread *processing_thread;     ///< for component writer function
82   
83    // list components provides and uses ports
84    standardInterfaces_i::complexFloat_p *complexFloatPortIn;
85    standardInterfaces_i::complexShort_u *complexShortPortOut;
86
87    float gain;
88   
89};
90#endif
Note: See TracBrowser for help on using the browser.