std::basic_fstream - cppreference.com
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<tbody> </tbody>
| Elemento definito nell'header <fstream> |
||
|
|
||
Il basic_fstream modello di classe implementa alto livello di ingresso / operazioni di output su file di flussi basati. Si interfaccia basata su file streambuffer (std::basic_filebuf) con l'interfaccia di alto livello di (std::basic_iostream).
Original:
The class template basic_fstream implements high-level input/output operations on file based streams. It interfaces a file-based streambuffer (std::basic_filebuf) with the high-level interface of (std::basic_iostream).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Una tipica implementazione di std::basic_fstream contiene solo un non-derivato membro di dati: un caso di std::basic_filebuf<CharT, Traits>.
Original:
A typical implementation of std::basic_fstream holds only one non-derived data member: an instance of std::basic_filebuf<CharT, Traits>.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Inheritance diagram
Due specializzazioni per i tipi di caratteri comuni sono anche definiti:
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.
Definizione nell'header | |
Tipo Original: Type The text has been machine-translated via Google Translate. |
Definition |
fstream
|
basic_fstream<char>
|
wfstream
|
basic_fstream<wchar_t>
|
Membri tipi
Membro tipo Original: Member type The text has been machine-translated via Google Translate. |
Definition |
char_type
|
CharT[modifica]
|
traits_type
|
Traits[modifica]
|
int_type
|
Traits::int_type[modifica]
|
pos_type
|
Traits::pos_type[modifica]
|
off_type
|
Traits::off_type[modifica]
|
Membri funzioni
costruisce il flusso di file Original: constructs the file stream The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
(destructor) [virtuale] (dichiarato in modo implicito) |
destructs the basic_fstream and the associated buffer, closes the file (metodo pubblico virtuale) [modifica] |
(C++11) |
sposta il flusso di file Original: moves the file stream The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] |
(C++11) |
Scambia due flussi di file Original: swaps two file streams The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] |
restituisce l'oggetto sottostante raw file di dispositivo Original: returns the underlying raw file device object The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Operazioni sui file Original: File operations The text has been machine-translated via Google Translate. | |
controlla se il flusso è associato un file Original: checks if the stream has an associated file The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
apre un file e lo associa con il flusso Original: opens a file and associates it with the stream The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
chiude il file associato Original: closes the associated file The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Non membri funzioni
Inherited from std::basic_istream
Member functions
Ingresso formattato Original: Formatted input The text has been machine-translated via Google Translate. | |
estratti i dati formattati Original: extracts formatted data The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Ingresso non formattato Original: Unformatted input The text has been machine-translated via Google Translate. | |
estratti di caratteri Original: extracts characters The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
legge il carattere successivo senza estrarlo Original: reads the next character without extracting it The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
unextracts un carattere Original: unextracts a character The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
mette carattere nel flusso di input Original: puts character into input stream The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
caratteri estratti fino a quando il carattere dato è stato trovato Original: extracts characters until the given character is found The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
estratti e personaggi scarta fino a quando il carattere dato è stato trovato Original: extracts and discards characters until the given character is found The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
estrae blocchi di caratteri Original: extracts blocks of characters The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
estrae blocchi già disponibili di caratteri Original: extracts already available blocks of characters The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Restituisce il numero dei caratteri estratti con l'ultima operazione di ingresso non formattato Original: returns number of characters extracted by last unformatted input operation The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Posizionamento Original: Positioning The text has been machine-translated via Google Translate. | |
restituisce l'indicatore di posizione di ingresso Original: returns the input position indicator The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
| sets the input position indicator (metodo pubblico) [modifica] | |
Varie Original: Miscellaneous The text has been machine-translated via Google Translate. | |
sincronizza con il dispositivo di archiviazione sottostante Original: synchronizes with the underlying storage device The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Member classes
| implements basic logic for preparation of the stream for input operations (membro pubblico of std::basic_istream classe) [modifica]
| |
Inherited from std::basic_ostream
Member functions
Ingresso formattato Original: Formatted input The text has been machine-translated via Google Translate. | |
inserisce i dati formattati Original: inserts formatted data The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Ingresso non formattato Original: Unformatted input The text has been machine-translated via Google Translate. | |
inserisce un carattere Original: inserts a character The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
blocchi inserti di caratteri Original: inserts blocks of characters The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Posizionamento Original: Positioning The text has been machine-translated via Google Translate. | |
restituisce l'indicatore di posizione di uscita Original: returns the output position indicator The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
imposta l'indicatore di posizione di uscita Original: sets the output position indicator The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Varie Original: Miscellaneous The text has been machine-translated via Google Translate. | |
sincronizza con il dispositivo di archiviazione sottostante Original: synchronizes with the underlying storage device The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Member classes
implementa la logica di base per la preparazione del flusso per operazioni di output Original: implements basic logic for preparation of the stream for output operations The text has been machine-translated via Google Translate. (membro pubblico of std::basic_ostream classe) [modifica]
| |
Inherited from std::basic_ios
Member types
Membro tipo Original: Member type The text has been machine-translated via Google Translate. |
Definition |
char_type
|
CharT
|
traits_type
|
Traits
|
int_type
|
Traits::int_type
|
pos_type
|
Traits::pos_type
|
off_type
|
Traits::off_type
|
Le funzioni dello Stato Original: State functions The text has been machine-translated via Google Translate. | |
controlla se nessun errore si è verificato ad esempio I / O sono disponibili Original: checks if no error has occurred i.e. I/O operations are available The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
controlli se end-of-file è stato raggiunto Original: checks if end-of-file has been reached The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Verifica se un errore recuperabile è verificato Original: checks if a recoverable error has occurred The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Verifica se un errore non recuperabile è verificato Original: checks if a non-recoverable error has occurred The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
controlla se è verificato un errore (sinonimo di fail()) Original: The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
(fino al c++11) |
verifica se non si sono verificati errori (sinonimo di Original: checks if no error has occurred (synonym of The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] |
restituisce flag di stato Original: returns state flags The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
imposta i flag di stato Original: sets state flags The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
cancella flag di errore e eof Original: clears error and eof flags The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Formattazione Original: Formatting The text has been machine-translated via Google Translate. | |
copie informazioni di formattazione Original: copies formatting information The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
gestisce il carattere di riempimento Original: manages the fill character The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Varie Original: Miscellaneous The text has been machine-translated via Google Translate. | |
| manages exception mask (metodo pubblico) [modifica] | |
imposta il locale Original: sets the locale The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
gestisce buffer del flusso associato Original: manages associated stream buffer The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
gestisce flusso legato Original: manages tied stream The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
restringe caratteri Original: narrows characters The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
| widens characters (metodo pubblico) [modifica] | |
Inherited from std::ios_base
Member functions
Formattazione Original: Formatting The text has been machine-translated via Google Translate. | |
gestisce i flag di formato Original: manages format flags The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
imposta flag specifico formato Original: sets specific format flag The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
| clears specific format flag (metodo pubblico) [modifica] | |
gestisce la precisione decimale di operazioni in virgola mobile Original: manages decimal precision of floating point operations The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
| manages field width (metodo pubblico) [modifica] | |
Versioni locali Original: Locales The text has been machine-translated via Google Translate. | |
imposta locale Original: sets locale The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
restituisce locale corrente Original: returns current locale The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Interno di matrice estensibile Original: Internal extensible array The text has been machine-translated via Google Translate. | |
[statico] |
restituisce un programma a livello di intero univoco che è sicuro da usare come indice per pword () e iword () Original: returns a program-wide unique integer that is safe to use as index to pword() and iword() The text has been machine-translated via Google Translate. (metodo pubblico statico) [modifica] |
ridimensiona l'ammasso privato e, se necessario, l'accesso all'elemento Original: resizes the private storage if necessary and access to the The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
ridimensiona l'ammasso privato e, se necessario, l'accesso all'elemento Original: resizes the private storage if necessary and access to the The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
Varie Original: Miscellaneous The text has been machine-translated via Google Translate. | |
| registers event callback function (metodo pubblico) [modifica] | |
[statico] |
Permette di scegliere se C + + e C librerie IO sono interoperabili Original: sets whether C++ and C IO libraries are interoperable The text has been machine-translated via Google Translate. (metodo pubblico statico) [modifica] |
Membri classi Original: Member classes The text has been machine-translated via Google Translate. | |
flusso di eccezione Original: stream exception The text has been machine-translated via Google Translate. (membro pubblico of std::ios_base classe) [modifica]
| |
inizializza oggetti stream standard Original: initializes standard stream objects The text has been machine-translated via Google Translate. (membro pubblico of std::ios_base classe) [modifica]
| |
Tipi di membri e costanti Original: Member types and constants The text has been machine-translated via Google Translate. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tipo Original: Type The text has been machine-translated via Google Translate. |
Explanation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
flusso di tipo modalità di apertura Le costanti sono anche definiti:
Original: stream open mode type The following constants are also defined:
The text has been machine-translated via Google Translate. (typedef) [modifica] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
formattazione bandiere tipo Le costanti sono anche definiti:
Original: formatting flags type The following constants are also defined:
The text has been machine-translated via Google Translate. (typedef) [modifica] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stato del tipo di flusso Le costanti sono anche definiti:
Original: state of the stream type The following constants are also defined:
The text has been machine-translated via Google Translate. (typedef) [modifica] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| seeking direction type
The following constants are also defined:
(typedef) [modifica] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
specifica il tipo di evento Original: specifies event type The text has been machine-translated via Google Translate. (enum) [modifica] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
callback tipo di funzione Original: callback function type The text has been machine-translated via Google Translate. (typedef) [modifica] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||