Commit | Line | Data |
---|---|---|
970ed795 | 1 | /////////////////////////////////////////////////////////////////////////////// |
3abe9331 | 2 | // Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
3 | // All rights reserved. This program and the accompanying materials |
4 | // are made available under the terms of the Eclipse Public License v1.0 | |
5 | // which accompanies this distribution, and is available at | |
6 | // http://www.eclipse.org/legal/epl-v10.html | |
7 | /////////////////////////////////////////////////////////////////////////////// | |
8 | // This Test Port skeleton header file was generated by the | |
9 | // TTCN-3 Compiler of the TTCN-3 Test Executor version 1.8.pre3 build 3 | |
10 | // for (ecsardu@tcclab2) on Fri May 21 19:22:39 2010 | |
11 | ||
12 | ||
13 | // You may modify this file. Add your attributes and prototypes of your | |
14 | // member functions here. | |
15 | ||
16 | #ifndef UNDER_HH | |
17 | #define UNDER_HH | |
18 | ||
19 | #include <TTCN3.hh> | |
20 | ||
21 | // Note: Header file dual2.hh must not be included into this file! | |
22 | // (because it includes this file) | |
23 | // Please add the declarations of message types manually. | |
24 | ||
25 | #ifndef OLD_NAMES | |
26 | namespace dual2 { | |
27 | #endif | |
28 | ||
29 | class UNDER_PROVIDER : public PORT { | |
30 | public: | |
31 | UNDER_PROVIDER(const char *par_port_name); | |
32 | ~UNDER_PROVIDER(); | |
33 | ||
34 | void set_parameter(const char *parameter_name, | |
35 | const char *parameter_value); | |
36 | ||
37 | private: | |
38 | /* void Handle_Fd_Event(int fd, boolean is_readable, | |
39 | boolean is_writable, boolean is_error); */ | |
40 | void Handle_Fd_Event_Error(int fd); | |
41 | void Handle_Fd_Event_Writable(int fd); | |
42 | void Handle_Fd_Event_Readable(int fd); | |
43 | /* void Handle_Timeout(double time_since_last_call); */ | |
44 | protected: | |
45 | void user_map(const char *system_port); | |
46 | void user_unmap(const char *system_port); | |
47 | ||
48 | void user_start(); | |
49 | void user_stop(); | |
50 | ||
51 | void outgoing_send(const OCTETSTRING& send_par); | |
52 | virtual void incoming_message(const OCTETSTRING& incoming_par) = 0; | |
53 | }; | |
54 | ||
55 | #ifndef OLD_NAMES | |
56 | } /* end of namespace */ | |
57 | #endif | |
58 | ||
59 | #endif |