Namespace
Varianti

std::basic_filebuf::seekpos

Da cppreference.com.
< cpp‎ | io‎ | basic filebuf

 
 
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 pos_type seekpos( pos_type sp,

                          std::ios_base::openmode which = std::ios_base::in | std::ios_base::out );
Riposiziona il puntatore del file, se possibile, alla posizione indicata da sp.
Original:
Repositions the file pointer, if possible, to the position indicated by sp.
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), fallisce immediatamente.
Original:
If the associated file is not open (is_open()==false), fails immediately.
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 è aperto in scrittura, prima scrive la zona e mettere tutte le sequenze unshift richiesti dalla impostazioni internazionali attualmente intriso, utilizzando overflow()
Original:
If the file is open for writing, first writes the put area and any unshift sequences required by the currently imbued locale, using overflow()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Poi riposiziona il puntatore al file, come chiamando std::fseek
Original:
Then repositions the file pointer, as by calling std::fseek
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 è aperto per la lettura, aggiorna la zona di ottenere, se necessario.
Original:
If the file is open for reading, updates the get area if necessary.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Se sp non è stato ottenuto da seekoff() chiamata o seekpos() sullo stesso file, il comportamento non è definito.
Original:
If sp was not obtained by calling seekoff() or seekpos() on the same file, the behavior is undefined.
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

sp -
posizione del file ottenuto seekoff() o seekpos() chiamato prima sullo stesso file
Original:
file position obtained by seekoff() or seekpos() called earlier on the same file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
which -
che definisce dell'ingresso e / o sequenze di uscita per incidere. Essa può essere una o una combinazione delle seguenti costanti:
Constant
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation
in
influenzano la sequenza di ingresso
Original:
affect 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.
out
influenzano la sequenza di uscita
Original:
affect 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.
Original:
defines which of the input and/or output sequences to affect. It can be one or a combination of the following constants:
Constant
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation
in
influenzano la sequenza di ingresso
Original:
affect 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.
out
influenzano la sequenza di uscita
Original:
affect 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.
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

sp in caso di successo o pos_type(off_type(-1)) in caso di fallimento.
Original:
sp on success or pos_type(off_type(-1)) on failure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Note

seekpos() viene chiamato da std::basic_streambuf::pubseekpos, che viene chiamato dagli singolo argomento versioni di std::basic_istream::seekg e std::basic_ostream::seekp
Original:
seekpos() is called by std::basic_streambuf::pubseekpos, which is called by the single-argument versions of std::basic_istream::seekg and std::basic_ostream::seekp
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

Invoca 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.

(membro pubblico of std::basic_streambuf funzione) [edit]
[virtuale]
riposiziona la posizione del file, usando l'indirizzamento relativo
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.

(virtuale protetto funzione membro) [edit]
si sposta l'indicatore di posizione file in una posizione specifica in un file
Original:
moves the file position indicator to a specific location in a file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]