root/ossiedev/branches/hvolos/packetwfrm/components/FrameAssembler/src/FrameAssembler.h @ 8827

Revision 8827, 3.2 KB (checked in by hvolos, 4 years ago)

removed _metadata suffix

  • Property svn:eol-style set to native
Line 
1/****************************************************************************
2
3Copyright 2007 Virginia Polytechnic Institute and State University
4
5This file is part of the OSSIE FrameAssembler_metadata.
6
7OSSIE FrameAssembler_metadata is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2 of the License, or
10(at your option) any later version.
11
12OSSIE FrameAssembler_metadata is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OSSIE FrameAssembler_metadata; if not, write to the Free Software
19Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
21****************************************************************************/
22
23
24#ifndef FRAMEASSEMBLER_METADATA_IMPL_H
25#define FRAMEASSEMBLER_METADATA_IMPL_H
26
27#include <stdlib.h>
28#include "ossie/cf.h"
29#include "ossie/PortTypes.h"
30#include "ossie/Resource_impl.h"
31#include "ossie/debug.h"
32
33#include "FrameAssemblerDSP.h"
34
35#include "standardinterfaces/complexShort_u.h"
36#include "standardinterfaces/complexShort_p.h"
37
38/** \brief
39 *
40 *
41 */
42class FrameAssembler_metadata_i : public virtual Resource_impl, public FrameAssemblerDSP
43{
44  public:
45    /// Initializing constructor
46    FrameAssembler_metadata_i(const char *uuid, omni_condition *sem);
47
48    /// Destructor
49    ~FrameAssembler_metadata_i(void);
50
51    /// Static function for omni thread
52    static void Run( void * data );
53
54    ///
55    void start() throw (CF::Resource::StartError, CORBA::SystemException);
56
57    ///
58    void stop() throw (CF::Resource::StopError, CORBA::SystemException);
59
60    ///
61    CORBA::Object_ptr getPort( const char* portName )
62        throw (CF::PortSupplier::UnknownPort, CORBA::SystemException);
63
64    ///
65    void releaseObject() throw (CF::LifeCycle::ReleaseError, CORBA::SystemException);
66
67    ///
68    void initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException);
69
70    /// Configures properties read from .prf.xml
71    void configure(const CF::Properties&)
72        throw (CORBA::SystemException,
73            CF::PropertySet::InvalidConfiguration,
74            CF::PropertySet::PartialConfiguration);
75
76
77  private:
78    /// Disallow default constructor
79    FrameAssembler_metadata_i();
80
81    /// Disallow copy constructor
82    FrameAssembler_metadata_i(FrameAssembler_metadata_i&);
83
84    /// Main signal processing method
85    void ProcessData();
86
87    void ConfigureModulationSchemeOnMetaData();
88   
89    omni_condition *component_running;  ///< for component shutdown
90    omni_thread *processing_thread;     ///< for component writer function
91   
92    // list components provides and uses ports
93    standardInterfaces_i::complexShort_p *dataIn_0;
94    standardInterfaces_i::complexShort_u *dataOut_0;
95    standardInterfaces::MetaData *metadata;
96
97    unsigned int num_frames_sent_app_1;
98    unsigned int num_frames_sent_app_2;
99    unsigned int num_frames_sent_app_5;
100    unsigned int num_frames_sent_app_6;
101
102};
103#endif
Note: See TracBrowser for help on using the browser.