OBuffer#
#include <OBuffer.h>
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#
public : Sortie
Inheritance graph#
If the image is too small, right-click and open in new tab
List of Public Methods#
Complete Member Function Documentation#
flush#
Sortie & OBuffer::flush() override
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#
int OBuffer::get_precision()
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#
int OBuffer::len()
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#
void OBuffer::new_buffer()
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#
OBuffer::OBuffer()
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#
void OBuffer::precision(int) override
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#
void OBuffer::put_null_char()
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#
void OBuffer::set_bin(bool bin) override
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#
const char * OBuffer::str()
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#
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.
int OBuffer::precision_
used to keep current precision when new_buffer() is called
std::string OBuffer::string_