std::basic_filebuf
Aus cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
definiert in Header <fstream>
|
||
template< class charT, |
||
std::basic_filebuf
ist ein std::basic_streambuf deren zugehörige Zeichenfolge ist eine Datei. Sowohl der Eingangssequenz und der Ausgangssequenz mit der gleichen Datei verbunden ist, und eine gemeinsame Datei Position für beide Operationen gehalten .Original:
std::basic_filebuf
is a std::basic_streambuf whose associated character sequence is a file. Both the input sequence and the output sequence are associated with the same file, and a joint file position is maintained for both operations.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Die Funktionen Unterlauf () und Überlauf () / sync () die eigentliche I / O zwischen der Datei und den get-und put Bereiche des Puffers. Wenn
CharT
nicht char, speichern die meisten Implementierungen Multibyte-Zeichen in der Datei und ein std::codecvt Facette wird verwendet, um breit / Multibyte Konvertierung durchführen .Original:
The functions underflow() and overflow()/sync() perform the actual I/O between the file and the get and put areas of the buffer. When
CharT
is not char, most implementations store multibyte characters in the file and a std::codecvt facet is used to perform wide/multibyte character conversion.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Zwei Spezialisierungen für gemeinsame Charakter-Typen sind ebenfalls definiert:
Original:
Two specializations for common character types are also defined:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
definiert in Header
<streambuf> | |
Type
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
filebuf
|
basic_filebuf<char> |
wfilebuf
|
basic_filebuf<wchar_t> |
[Bearbeiten] Mitglied Typen
Mitglied Typ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
char_type
|
CharT |
traits_type
|
Traits |
int_type
|
Traits::int_type |
pos_type
|
Traits::pos_type welche erforderlich ist, um std::fpos<Traits::state_type> sein
Original: Traits::pos_type which is required to be std::fpos<Traits::state_type> The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
off_type
|
Traits::off_type |
[Bearbeiten] Member-Funktionen
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. | |
konstruiert eine basic_filebuf Objekt Original: constructs a basic_filebuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
(C++11) |
ordnet eine basic_filebuf Objekt Original: assigns a basic_filebuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) |
(C++11) |
Swaps zwei basic_filebuf Objekte Original: swaps two basic_filebuf objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) |
[virtuell] |
zerstört sich eine basic_filebuf Objekt und schließt die Datei, wenn sie geöffnet ist Original: destructs a basic_filebuf object and closes the file if it is open The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen öffentlichen Member-Funktion) |
checks if the associated file is open (öffentliche Elementfunktion) | |
öffnet eine Datei und konfiguriert es wie die zugehörige Zeichenfolge Original: opens a file and configures it as the associated character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
spült die Put-Bereich Puffer und schließt die zugehörige Datei Original: flushes the put area buffer and closes 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. (öffentliche Elementfunktion) | |
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. | |
[virtuell] |
Optional bietet die Anzahl der noch verfügbaren Zeichen für die Eingabe aus der Datei Original: optionally provides the number of characters available for input from the file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] |
liest aus der zugehörigen Datei 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. (virtuellen geschützten Member-Funktion) |
[virtuell] |
liest aus der zugehörigen Datei und Fortschritte der nächste Zeiger in der get-Bereich Original: reads from the associated file and advances the next pointer in the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] |
stellt wieder die Zeichen in der get-Bereich, nicht zum Nachteil der zugehörigen Datei Original: puts back the character in the get area, not affecting 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. (virtuellen geschützten Member-Funktion) |
[virtuell] |
schreibt Zeichen der zugehörige Datei aus der Put-Bereich Original: writes characters to the associated file 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. (virtuellen geschützten Member-Funktion) |
[virtuell] |
bietet vom Benutzer angegebenen Puffer oder schaltet diese filebuf unbuffered Original: provides user-supplied buffer or turns this filebuf unbuffered The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] |
positioniert die Position in der Datei, mit relativen Adressierung Original: repositions the file position, using relative addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] |
positioniert die Datei Position mit absoluter Adressierung Original: repositions the file position, using absolute addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] |
schreibt Zeichen der zugehörige Datei aus der Put-Bereich Original: writes characters to the associated file 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. (virtuellen geschützten Member-Funktion) |
[virtuell] |
ändert den zugehörigen Gebietsschema Original: changes the associated locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[Bearbeiten] Non-Member-Funktionen
spezialisiert die std::swap Algorithmus Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) |
Inherited from std::basic_streambuf
Member types
Mitglied Typ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
char_type
|
CharT |
traits_type
|
Traits |
int_type
|
Traits::int_type |
pos_type
|
Traits::pos_type |
off_type
|
Traits::off_type |
Member functions
[virtuell] |
zerstört sich die basic_streambuf Objekt Original: destructs the basic_streambuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen öffentlichen Member-Funktion of std::basic_streambuf )
|
Original: Locales The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Beruft imbue() Original: invokes imbue() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
erhält eine Kopie des zugehörigen locale Original: obtains a copy of the associated locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
Original: Positioning The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Beruft setbuf() Original: invokes setbuf() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
Beruft seekoff() Original: invokes seekoff() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
Beruft seekpos() Original: invokes seekpos() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
Beruft sync() Original: invokes sync() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
Original: Get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
erhält die Anzahl der Zeichen sofort in der get-Bereich Original: obtains the number of characters immediately available in the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
Fortschritte die Eingabesequenz, dann liest ein Charakter ohne Förderung wieder Original: advances the input sequence, then reads one character without advancing again The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
liest ein Zeichen aus der Eingabesequenz und fördert die Sequenz Original: reads one character from the input sequence and advances the sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
stossc (veraltet) |
Fortschritte der Eingabesequenz, als ob durch den Aufruf sbumpc() und Verwerfen die Folge Original: advances the input sequence as if by calling sbumpc() and discarding the result The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) |
liest ein Zeichen aus der Eingabesequenz ohne dabei den Sequenz Original: reads one character from the input sequence without advancing the sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
Beruft xsgetn() Original: invokes xsgetn() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
Original: Put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
schreibt ein Zeichen der Put-Bereich und Fortschritte der nächste Zeiger Original: writes one character to the put area and advances the next pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
Beruft xsputn() Original: invokes xsputn() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
Original: Putback The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
stellt ein Zeichen wieder in der Eingabesequenz Original: puts one character back in the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
| |
bewegt den nächsten Zeiger in der Eingabesequenz zurück um eins Original: moves the next pointer in the input sequence back by one The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_streambuf )
|
Protected member functions
konstruiert eine basic_streambuf Objekt Original: constructs a basic_streambuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
(C++11) |
ersetzt eine basic_streambuf Objekt Original: replaces a basic_streambuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) |
(C++11) |
Swaps zwei basic_streambuf Objekte Original: swaps two basic_streambuf objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) |
Original: Locales The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[virtuell] |
ändert den zugehörigen Gebietsschema Original: changes the associated locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
Original: Positioning The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[virtuell] |
ersetzt den Puffer mit benutzerdefinierten Array, sofern zulässig Original: replaces the buffer with user-defined array, if permitted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
[virtuell] |
repositioniert der nächste Zeiger in der Eingangssequenz, Ausgangssequenz, oder beide, mit relativen Adressierung Original: repositions the next pointer in the input sequence, output sequence, or both, using relative addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
[virtuell] |
repositioniert der nächste Zeiger in der Eingangssequenz, Ausgangssequenz oder sowohl mit absoluten Adressierung Original: repositions the next pointer in the input sequence, output sequence, or both using absolute addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
[virtuell] |
synchronisiert die Puffer mit der zugehörigen Zeichenfolge Original: synchronizes the buffers with the associated character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
Original: Get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[virtuell] |
ermittelt die Anzahl der Zeichen für die Eingabe in dem zugehörigen Eingabesequenz, falls bekannt Original: obtains the number of characters available for input in the associated input sequence, if known The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
[virtuell] |
liest Zeichen aus dem dazugehörigen Eingang Sequenz an die get-Bereich Original: reads characters from the associated input sequence to the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
[virtuell] |
liest Zeichen aus dem dazugehörigen Eingang Sequenz an die get-Bereich und Fortschritte der nächste Zeiger Original: reads characters from the associated input sequence to the get area and advances the next pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
[virtuell] |
liest mehreren Zeichen der Eingabesequenz Original: reads multiple characters from the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
liefert einen Zeiger auf den Anfang, aktuellen Charakter und Ende des get-Bereich Original: returns a pointer to the beginning, current character and the end of the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
Fortschritte der nächste Zeiger in der Eingabesequenz Original: advances the next pointer in the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
repositioniert der Anfang, nächsten und Endzeiger der Eingabesequenz Original: repositions the beginning, next, and end pointers of the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
Original: Put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[virtuell] |
writes multiple characters to the output sequence (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
[virtuell] |
schreibt Zeichen auf die zugehörige Ausgangsscheibe Sequenz aus dem Bereich gebracht 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. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|
liefert einen Zeiger auf den Anfang, aktuelle Zeichen und das Ende der Put-Bereich Original: returns a pointer to the beginning, current character and the end of 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. (geschützt Member-Funktion) | |
Fortschritte der nächste Zeiger der Ausgangssequenz Original: advances the next pointer of the output sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
repositioniert der Anfang, nächsten und Endzeiger der Ausgangssequenz Original: repositions the beginning, next, and end pointers of the output sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
Original: Putback The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[virtuell] |
stellt ein Zeichen wieder in der Eingangssequenz, gegebenenfalls Modifizierung der Eingabesequenz Original: puts a character back into the input sequence, possibly modifying the input sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion of std::basic_streambuf )
|