Version: 9.16.0
SenderByteImpl.hxx
Go to the documentation of this file.
1// Copyright (C) 2023-2026 CEA, EDF
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#pragma once
21
23
24#include <SALOMEconfig.h>
25#include CORBA_SERVER_HEADER(SALOME_Comm)
27
28#include <cstddef>
29
30class COMMUNICATION_EXPORT SenderByteImpl : public virtual POA_SALOME::SenderByte,
31 public virtual PortableServer::ServantBase,
32 public virtual SALOME::GenericObj_i
33{
34public:
36 SenderByteImpl(char *data, std::size_t size):_data(data),_size(size) { }
37 CORBA::ULongLong getSize() override;
38 SALOME::vectorOfByte *sendPart(CORBA::ULongLong n1, CORBA::ULongLong n2) override;
39private:
40 char *_data = nullptr;
41 std::size_t _size = 0;
42};
#define COMMUNICATION_EXPORT
Definition: SALOME_Communication.hxx:37
Implementation of the base servant for SALOME objects with reference counter.
Definition: SALOME_GenericObj_i.hh:53
Definition: SenderByteImpl.hxx:33
SenderByteImpl(char *data, std::size_t size)
SenderByteImpl instance does not have ownership of data.
Definition: SenderByteImpl.hxx:36
sequence< octet > vectorOfByte
Definition: SALOME_Comm.idl:44