Namespace
Varianti

cpp/io/basic filebuf/overflow: differenze tra le versioni

Da cppreference.com.
< cpp‎ | io‎ | basic filebuf
m (r2.7.3) (Bot: Aggiungo de, en, es, fr, ja, pt, ru, zh)
m (Use {{lc}}. Update links. Various fixes.)
 
Riga 9: Riga 9:
 
{{tr|Si comporta come il {{c|std::basic_streambuf::overflow}} classe di base, salvo che per scrivere i dati dall'area di messa alla sequenza di caratteri associata (al file), utilizza prima {{ltt|cpp/locale/codecvt/do_out|codecvt::out()}} del locale imbevuta per convertire i caratteri in esterno (possibilmente multibyte) rappresentazione, memorizzata in un buffer temporaneo (allocato grande quanto necessario), quindi utilizza file di I / O per copiare tutti completamente convertiti byte nel file.|Behaves like the base class {{c|std::basic_streambuf::overflow}}, except that to write the data from the put area to the associated character sequence (to the file), first uses {{ltt|cpp/locale/codecvt/do_out|codecvt::out()}} of the imbued locale to convert the characters into external (possibly multibyte) representation, stored in a temporary buffer (allocated as large as necessary), then uses file I/O to copy all fully-converted bytes into the file.}}
 
{{tr|Si comporta come il {{c|std::basic_streambuf::overflow}} classe di base, salvo che per scrivere i dati dall'area di messa alla sequenza di caratteri associata (al file), utilizza prima {{ltt|cpp/locale/codecvt/do_out|codecvt::out()}} del locale imbevuta per convertire i caratteri in esterno (possibilmente multibyte) rappresentazione, memorizzata in un buffer temporaneo (allocato grande quanto necessario), quindi utilizza file di I / O per copiare tutti completamente convertiti byte nel file.|Behaves like the base class {{c|std::basic_streambuf::overflow}}, except that to write the data from the put area to the associated character sequence (to the file), first uses {{ltt|cpp/locale/codecvt/do_out|codecvt::out()}} of the imbued locale to convert the characters into external (possibly multibyte) representation, stored in a temporary buffer (allocated as large as necessary), then uses file I/O to copy all fully-converted bytes into the file.}}
  
{{tr|Se la conversione non riesce con {{c|std::codecvt_base::error}}, restituisce {{c|Traits::eof()}} senza tentare alcun output.|If the conversion fails with {{c|std::codecvt_base::error}}, returns {{c|Traits::eof()}} without attempting any output.}}
+
{{tr|Se la conversione non riesce con {{|std::codecvt_base::error}}, restituisce {{c|Traits::eof()}} senza tentare alcun output.|If the conversion fails with {{|std::codecvt_base::error}}, returns {{c|Traits::eof()}} without attempting any output.}}
  
 
{{tr|Se il file associato non è aperto ({{c|1=is_open()==false}}, restituisce {{c|Traits::eof()}} prima di fare qualsiasi cosa.|If the associated file is not open ({{c|1=is_open()==false}}, returns {{c|Traits::eof()}} before doing anything.}}
 
{{tr|Se il file associato non è aperto ({{c|1=is_open()==false}}, restituisce {{c|Traits::eof()}} prima di fare qualsiasi cosa.|If the associated file is not open ({{c|1=is_open()==false}}, returns {{c|Traits::eof()}} before doing anything.}}
Riga 27: Riga 27:
  
 
===Vedi anche===
 
===Vedi anche===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/io/basic_streambuf/dcl list overflow}}
+
{{| cpp/io/basic_streambuf/overflow}}
{{dcl list template | cpp/io/basic_filebuf/dcl list underflow}}
+
{{| cpp/io/basic_filebuf/underflow}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/io/basic filebuf/overflow]]
 
[[de:cpp/io/basic filebuf/overflow]]

Versione attuale delle 13:12, 2 lug 2013

 
 
Ingresso / libreria di output
I / O manipolatori
C-style I / O
Buffer
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf(deprecato)
Streams
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Astrazioni
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
File I / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
String I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
Array I / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream(deprecato)
ostrstream(deprecato)
strstream(deprecato)
Tipi
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
Errore categoria interfaccia
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category(C++11)
io_errc(C++11)
 
std::basic_filebuf
Funzioni membro pubbliche
Original:
Public member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_filebuf::basic_filebuf
basic_filebuf::~basic_filebuf
basic_filebuf::operator=(C++11)
basic_filebuf::swap(C++11)
basic_filebuf::is_open
basic_filebuf::open
basic_filebuf::close
Protetto funzioni membro
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_filebuf::showmanyc
basic_filebuf::underflow
basic_filebuf::uflow
basic_filebuf::pbackfail
basic_filebuf::overflow
basic_filebuf::setbuf
basic_filebuf::seekoff
basic_filebuf::seekpos
basic_filebuf::sync
basic_filebuf::imbue
Non membri funzioni
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap(std::basic_filebuf)(C++11)
 
protected:
virtual int_type overflow ( int_type c = Traits::eof() );
Si comporta come il std::basic_streambuf::overflow classe di base, salvo che per scrivere i dati dall'area di messa alla sequenza di caratteri associata (al file), utilizza prima codecvt::out() del locale imbevuta per convertire i caratteri in esterno (possibilmente multibyte) rappresentazione, memorizzata in un buffer temporaneo (allocato grande quanto necessario), quindi utilizza file di I / O per copiare tutti completamente convertiti byte nel file.
Original:
Behaves like the base class std::basic_streambuf::overflow, except that to write the data from the put area to the associated character sequence (to the file), first uses codecvt::out() of the imbued locale to convert the characters into external (possibly multibyte) representation, stored in a temporary buffer (allocated as large as necessary), then uses file I/O to copy all fully-converted bytes into the file.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Se la conversione non riesce con std::codecvt_base::error, restituisce Traits::eof() senza tentare alcun output.
Original:
If the conversion fails with std::codecvt_base::error, returns Traits::eof() without attempting any output.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Se il file associato non è aperto (is_open()==false, restituisce Traits::eof() prima di fare qualsiasi cosa.
Original:
If the associated file is not open (is_open()==false, returns Traits::eof() before doing anything.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica] Parametri

(Nessuno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Valore di ritorno

Traits::not_eof(c) per indicare il successo o Traits::eof() per indicare l'errore.
Original:
Traits::not_eof(c) to indicate success or Traits::eof() to indicate failure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Esempio

[modifica] Vedi anche

[virtuale]
scrive caratteri della sequenza di emissione associato dalla zona put
Original:
writes characters to the associated output sequence from the put area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtuale protetto funzione of std::basic_streambuf membro) [modifica]
[virtuale]
legge dal file associato
Original:
reads from the associated file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtuale protetto funzione membro) [modifica]