]> SALOME platform Git repositories - modules/kernel.git/blob - src/Communication/SALOMEMultiComm.hxx
Salome HOME
PR: merge from branch BR_UnitTests tag mergeto_trunk_17oct05
[modules/kernel.git] / src / Communication / SALOMEMultiComm.hxx
1 #ifndef _SALOMEMULTICOMM_HXX_
2 #define _SALOMEMULTICOMM_HXX_
3
4 #include <SALOMEconfig.h>
5 #include CORBA_SERVER_HEADER(SALOME_Comm)
6
7 #if defined WNT && defined COMMUNICATION_EXPORTS
8 #define COMMUNICATION_EXPORT __declspec( dllexport )
9 #else
10 #define COMMUNICATION_EXPORT
11 #endif
12
13 /*!
14   Class is designed to ease the use of multi communication.\n
15   Simply inherite from it your servant class you want to emit data with senders.
16  */
17 class COMMUNICATION_EXPORT SALOMEMultiComm : public virtual POA_SALOME::MultiCommClass {
18 protected:
19   SALOME::TypeOfCommunication _type;
20 public:
21   SALOMEMultiComm();
22   SALOMEMultiComm(SALOME::TypeOfCommunication type);
23   virtual void setProtocol(SALOME::TypeOfCommunication type);
24   SALOME::TypeOfCommunication getProtocol() const;
25 };
26
27 #endif