root/components/ChannelDemo/trunk/ChannelDemo/ChannelDemo.h @ 4249

Revision 4249, 2.6 KB (checked in by jgaeddert, 7 years ago)

fixing install path

  • Property svn:eol-style set to native
Line 
1/****************************************************************************
2
3Copyright 2006 Virginia Polytechnic Institute and State University
4
5This file is part of the OSSIE ChannelDemo.
6
7OSSIE ChannelDemo 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 ChannelDemo 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 ChannelDemo; 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 CHANNELDEMO_IMPL_H
25#define CHANNELDEMO_IMPL_H
26
27#include <stdlib.h>
28#include "ossie/cf.h"
29
30#include "ossie/PortTypes.h"
31
32#include "standardinterfaces/complexShort.h"
33#include "standardinterfaces/complexShort_u.h"
34#include "standardinterfaces/complexShort_p.h"
35
36#include "ossie/Resource_impl.h"
37class ChannelDemo_i;
38
39void process_data(void *data);
40
41class ChannelDemo_i : public virtual Resource_impl
42{
43    friend class dataOut_i;
44    friend class dataIn_i;
45    friend void process_data(void *data);
46
47    public:
48        ChannelDemo_i(const char *uuid, omni_condition *sem);
49
50        void start() throw (CF::Resource::StartError, CORBA::SystemException);
51        void stop() throw (CF::Resource::StopError, CORBA::SystemException);
52
53        CORBA::Object_ptr getPort( const char* portName ) throw (CF::PortSupplier::UnknownPort, CORBA::SystemException);
54
55        void releaseObject() throw (CF::LifeCycle::ReleaseError, CORBA::SystemException);
56
57        void initialize() throw (CF::LifeCycle::InitializeError, CORBA::SystemException);
58        void configure(const CF::Properties&) throw (CORBA::SystemException, CF::PropertySet::InvalidConfiguration, CF::PropertySet::PartialConfiguration);
59
60
61    private:
62        ChannelDemo_i();
63        ChannelDemo_i(ChannelDemo_i&);
64   
65        omni_condition *component_running;  //for component shutdown
66        omni_thread *processing_thread;     //for component writer function
67       
68        CORBA::Short simple;
69        short att_factor;   
70       
71        //list components provides and uses ports
72        standardInterfaces_i::complexShort_u *dataOut;
73        standardInterfaces_i::complexShort_p *dataIn;
74       
75};
76#endif
Note: See TracBrowser for help on using the browser.