Version: 9.16.0
data_short_port_uses.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23// File : data_short_port_uses.hxx
24// Author : André RIBES (EDF)
25// Module : KERNEL
26//
27#ifndef _DATA_SHORT_PORT_USES_HXX_
28#define _DATA_SHORT_PORT_USES_HXX_
29
30#include "uses_port.hxx"
31#include "SALOME_Ports.hh"
32
38 public virtual uses_port
39{
40 public :
42 virtual ~data_short_port_uses();
43
50 virtual const char * get_repository_id();
51
58 virtual void put(CORBA::Short data);
59
67 virtual void uses_port_changed(Engines::DSC::uses_port * new_uses_port,
68 const Engines::DSC::Message /*message*/);
69
70 private :
72};
73
74#endif
75
This class a port that sends a CORBA short with the basic port policy.
Definition: data_short_port_uses.hxx:39
data_short_port_uses()
Definition: data_short_port_uses.cxx:30
Engines::DSC::uses_port * _my_ports
Definition: data_short_port_uses.hxx:71
virtual ~data_short_port_uses()
Definition: data_short_port_uses.cxx:34
virtual const char * get_repository_id()
This method is used by the component to get port's CORBA repository id.
Definition: data_short_port_uses.cxx:37
virtual void put(CORBA::Short data)
This method is used by the component to send a short value to all the provides ports connected.
Definition: data_short_port_uses.cxx:42
virtual void uses_port_changed(Engines::DSC::uses_port *new_uses_port, const Engines::DSC::Message)
This method is a callback for be aware of modification of the port's connections.
Definition: data_short_port_uses.cxx:58
This class implements a DSC_User uses C++ port.
Definition: uses_port.hxx:44
Message
This enumeration is used when the connection of a port (uses or provides) is changed.
Definition: DSC_Engines.idl:79
sequence< Ports::Port > uses_port
a uses port
Definition: DSC_Engines.idl:73