OBuffer#

#include <OBuffer.h>
Brief description

How to reference this class#

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`OBuffer <class-obuffer>`
[OBuffer](#class-obuffer)

Detailed description#

Inherits from#

Inheritance graph#

If the image is too small, right-click and open in new tab

../../../../../_images/classOBuffer__inherit__graph.png

List of Public Methods#

Complete Member Function Documentation#

flush#

Definition
Sortie & OBuffer::flush() override
Brief description

Force l’ecriture sur disque des donnees dans le tampon Utilise l’implementation de la classe ofstream.

Detailed description

Reimplements:

How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`Sortie & OBuffer::flush() override <obuffer-public-sortie-ref-obuffer-flush-override>`
[Sortie & OBuffer::flush() override](#obuffer-public-sortie-ref-obuffer-flush-override)

get_precision#

Definition
int OBuffer::get_precision()
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int OBuffer::get_precision() <obuffer-public-int-obuffer-get-precision>`
[int OBuffer::get_precision()](#obuffer-public-int-obuffer-get-precision)

len#

Definition
int OBuffer::len()
Brief description
Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`int OBuffer::len() <obuffer-public-int-obuffer-len>`
[int OBuffer::len()](#obuffer-public-int-obuffer-len)

new_buffer#

Definition
void OBuffer::new_buffer()
Brief description
Detailed description
References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void OBuffer::new_buffer() <obuffer-public-void-obuffer-new-buffer>`
[void OBuffer::new_buffer()](#obuffer-public-void-obuffer-new-buffer)

OBuffer#

Definition
OBuffer::OBuffer()
Brief description
Detailed description
References
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`OBuffer::OBuffer() <obuffer-public-obuffer-obuffer>`
[OBuffer::OBuffer()](#obuffer-public-obuffer-obuffer)

precision#

Definition
void OBuffer::precision(int) override
Brief description
Detailed description

Reimplements:

Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void OBuffer::precision(int) override <obuffer-public-void-obuffer-precision-int-override>`
[void OBuffer::precision(int) override](#obuffer-public-void-obuffer-precision-int-override)

put_null_char#

Definition
void OBuffer::put_null_char()
Brief description

ajoute le caractere nul a la fin du buffer pour en faire une chaine de caracteres valide.

Detailed description

len() renvoie la longueur du buffer, y compris le 0 Voir Ecr_Fic_Par::syncfile()

References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void OBuffer::put_null_char() <obuffer-public-void-obuffer-put-null-char>`
[void OBuffer::put_null_char()](#obuffer-public-void-obuffer-put-null-char)

set_bin#

Definition
void OBuffer::set_bin(bool bin) override
Brief description
Detailed description

Reimplements:

References
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`void OBuffer::set_bin(bool bin) override <obuffer-public-void-obuffer-set-bin-bool-bin-override>`
[void OBuffer::set_bin(bool bin) override](#obuffer-public-void-obuffer-set-bin-bool-bin-override)

str#

Definition
const char * OBuffer::str()
Brief description

Renvoie un pointeur sur le debut du buffer.

Detailed description
Referenced By
How to reference this method:

Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):

:ref:`const char * OBuffer::str() <obuffer-public-const-char-ptr-obuffer-str>`
[const char * OBuffer::str()](#obuffer-public-const-char-ptr-obuffer-str)

Attributes Documentation#

buf_ (private)
std::ostringstream* OBuffer::buf_ = 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.

precision_ (private)
int OBuffer::precision_

used to keep current precision when new_buffer() is called

string_ (private)
std::string OBuffer::string_