OutputCommBuffer#
#include <OutputCommBuffer.h>
: Classe outil utilisee exclusivement par Schema_Comm .
How to cite this class in this doc#
:ref:`OutputCommBuffer <class-outputcommbuffer>`
[OutputCommBuffer](#class-outputcommbuffer)
Detailed description#
C’est une classe derivee de Entree dont le stream est de type ostrstream (les donnees sont ecrites par operator<<dans un buffer en memoire). On utilise la classe comme suit: (1) on ecrit des donnees avec operator<<dans le buffer ouput_comm_buffer <<x <<y <<chaine <<… ; (2) on recupere l’ensemble des donnees ecrites sous la forme d’un bloc de memoire contigu de taille “get_buffer_size()” situe a l’adresse “get_buffer()”. (3) on reinitialise le buffer avec “clear()” et on peut refaire (1)
Inherits from#
public : Sortie
List of Public Methods#
Complete Member Function Documentation#
clear
void OutputCommBuffer::clear()
Referenced By
How to cite in this doc:
:ref:`void OutputCommBuffer::clear() <public-void-outputcommbuffer-clear>`
[void OutputCommBuffer::clear()](#public-void-outputcommbuffer-clear)
get_buffer
const char * OutputCommBuffer::get_buffer()
How to cite in this doc:
:ref:`const char * OutputCommBuffer::get_buffer() <public-const-char-ptr-outputcommbuffer-get-buffer>`
[const char * OutputCommBuffer::get_buffer()](#public-const-char-ptr-outputcommbuffer-get-buffer)
get_buffer_size
int OutputCommBuffer::get_buffer_size()
Referenced By
How to cite in this doc:
:ref:`int OutputCommBuffer::get_buffer_size() <public-int-outputcommbuffer-get-buffer-size>`
[int OutputCommBuffer::get_buffer_size()](#public-int-outputcommbuffer-get-buffer-size)
get_stream
ostringstream & OutputCommBuffer::get_stream()
How to cite in this doc:
:ref:`ostringstream & OutputCommBuffer::get_stream() <public-ostringstream-ref-outputcommbuffer-get-stream>`
[ostringstream & OutputCommBuffer::get_stream()](#public-ostringstream-ref-outputcommbuffer-get-stream)
OutputCommBuffer
OutputCommBuffer::OutputCommBuffer()
How to cite in this doc:
:ref:`OutputCommBuffer::OutputCommBuffer() <public-outputcommbuffer-outputcommbuffer>`
[OutputCommBuffer::OutputCommBuffer()](#public-outputcommbuffer-outputcommbuffer)
~OutputCommBuffer
OutputCommBuffer::~OutputCommBuffer() override
References
How to cite in this doc:
:ref:`OutputCommBuffer::~OutputCommBuffer() override <public-outputcommbuffer-dtor-outputcommbuffer-override>`
[OutputCommBuffer::~OutputCommBuffer() override](#public-outputcommbuffer-dtor-outputcommbuffer-override)
Attributes Documentation#
stream_ (private)
ostringstream* OutputCommBuffer::stream_ = nullptr
This pointer is just a (typed) view on the smart ptr hold by the base class ( Sortie ). The base class is managing the memory.
string_ (private)
std::string OutputCommBuffer::string_