| 1 | /****************************************************************************** |
| 2 | * Copyright (c) 2000-2016 Ericsson Telecom AB |
| 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 | * Contributors: |
| 9 | * Balasko, Jeno |
| 10 | * Lovassy, Arpad |
| 11 | * |
| 12 | ******************************************************************************/ |
| 13 | // This Test Port skeleton source file was generated by the |
| 14 | // TTCN-3 Compiler of the TTCN-3 Test Executor version 1.8.pre3 build 4 |
| 15 | // for Attila Balasko (ethbaat@ehubuux110) on Wed Jun 2 15:51:57 2010 |
| 16 | |
| 17 | |
| 18 | // You may modify this file. Complete the body of empty functions and |
| 19 | // add your member functions here. |
| 20 | |
| 21 | #include "PCO_PT.hh" |
| 22 | #include <stdio.h> |
| 23 | #include "memory.h" |
| 24 | |
| 25 | namespace Titan__LogTestDefinitions { |
| 26 | |
| 27 | PCO__PT::PCO__PT(const char *par_port_name) |
| 28 | : PCO__PT_BASE(par_port_name) |
| 29 | { |
| 30 | |
| 31 | } |
| 32 | |
| 33 | PCO__PT::~PCO__PT() |
| 34 | { |
| 35 | |
| 36 | } |
| 37 | |
| 38 | void PCO__PT::set_parameter(const char *parameter_name, |
| 39 | const char *parameter_value) |
| 40 | { |
| 41 | |
| 42 | } |
| 43 | |
| 44 | /*void PCO__PT::Handle_Fd_Event(int fd, boolean is_readable, |
| 45 | boolean is_writable, boolean is_error) {}*/ |
| 46 | |
| 47 | void PCO__PT::Handle_Fd_Event_Error(int fd) |
| 48 | { |
| 49 | |
| 50 | } |
| 51 | |
| 52 | void PCO__PT::Handle_Fd_Event_Writable(int fd) |
| 53 | { |
| 54 | |
| 55 | } |
| 56 | |
| 57 | void PCO__PT::Handle_Fd_Event_Readable(int fd) |
| 58 | { |
| 59 | |
| 60 | } |
| 61 | |
| 62 | /*void PCO__PT::Handle_Timeout(double time_since_last_call) {}*/ |
| 63 | |
| 64 | |
| 65 | void PCO__PT::user_map(const char *system_port) |
| 66 | { |
| 67 | TTCN_warning("This is a Warning in the port"); //WARNING_UNQUALIFIED |
| 68 | TTCN_Logger::log(TTCN_DEBUG,"This is a TTCN_DEBUG log in the port");//DEBUG_UNQUALIFIED |
| 69 | TTCN_Logger::log(TTCN_WARNING,"This is a TTCN_WARNING log in the port");//WARNING_UNQUALIFIED |
| 70 | TTCN_Logger::log(TTCN_ERROR,"This is a TTCN_ERROR log in the port");//ERROR_UNQUALIFIED |
| 71 | |
| 72 | TTCN_Logger::begin_event(TTCN_DEBUG); |
| 73 | TTCN_Logger::log_event("This is a log_event"); |
| 74 | TTCN_Logger::end_event(); |
| 75 | |
| 76 | } |
| 77 | |
| 78 | void PCO__PT::user_unmap(const char *system_port) |
| 79 | { |
| 80 | |
| 81 | } |
| 82 | |
| 83 | void PCO__PT::user_start() |
| 84 | { |
| 85 | |
| 86 | } |
| 87 | |
| 88 | void PCO__PT::user_stop() |
| 89 | { |
| 90 | |
| 91 | } |
| 92 | |
| 93 | void PCO__PT::outgoing_send(const CHARSTRING& send_par) |
| 94 | { |
| 95 | |
| 96 | } |
| 97 | |
| 98 | } /* end of namespace */ |
| 99 | |