Класс
ios_base это многофункциональный класс, который служит в качестве базового класса для всех классов потока ввода / вывода . Он поддерживает несколько видов данных:
Original:
The class ios_base is a multipurpose class that serves as the base class for all I/O stream classes. It maintains several kinds of data:
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
Типичная реализация держит член констант, соответствующих всем значениям fmtflags, iostate, OpenMode, и seekdir показано ниже, переменных-членов для поддержания текущей точности, шириной и форматирование флаги, за исключением маски, буферное государство ошибки, изменяющих размер контейнера, содержащего обратные вызовы, в настоящее время проникнуться языка, частные хранения и статические целой переменной для xalloc ().
Original:
Typical implementation holds member constants corresponding to all values of fmtflags, iostate, openmode, and seekdir shown below, member variables to maintain current precision, width, and formatting flags, the exception mask, the buffer error state, a resizeable container holding the callbacks, the currently imbued locale, the private storage, and a static integer variable for xalloc().
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
|
|
|
|
Строит объект Original: constructs the object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protected функция-член) [edit]
|
|
|
|
|
разрушает объект Original: destructs the object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtual public функция-член) [edit]
|
Форматирование Original: Formatting The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
|
|
управляет форматом флаги Original: manages format flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член) [edit]
|
|
|
|
|
устанавливает конкретные флаг формате Original: sets specific format flag The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член) [edit]
|
|
|
|
|
clears specific format flag (public функция-член) [edit]
|
|
|
|
|
управляет десятичная точность операций с плавающей точкой Original: manages decimal precision of floating point operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член) [edit]
|
|
|
|
|
manages field width (public функция-член) [edit]
|
Языки Original: Locales The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
|
|
устанавливает язык Original: sets locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член) [edit]
|
|
|
|
|
возвращает текущей локали Original: returns current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член) [edit]
|
Внутренние расширяемый массив Original: Internal extensible array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
|
|
возвращает программу в масштабах уникальное целое число, которое является безопасным для использования в качестве индекса Pword () и 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. You can help to correct and verify the translation. Click here for instructions. (public static функция-член) [edit]
|
|
|
|
|
изменяет размер частного хранения при необходимости и доступ к long элемент по заданному индексу Original: resizes the private storage if necessary and access to the long element at the given index The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член) [edit]
|
|
|
|
|
изменяет размер частного хранения при необходимости и доступ к void* элемент по заданному индексу Original: resizes the private storage if necessary and access to the void* element at the given index The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член) [edit]
|
Разное Original: Miscellaneous The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
|
|
registers event callback function (public функция-член) [edit]
|
|
|
|
|
Наборы ли C + + и C IO библиотеки совместимы Original: sets whether C++ and C IO libraries are interoperable The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public static функция-член) [edit]
|
Член классов Original: Member classes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
|
|
Поток исключение Original: stream exception The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public член класса) [edit]
|
|
|
|
|
инициализирует стандартные объекты потока Original: initializes standard stream objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public член класса) [edit]
|
Член типами и константами Original: Member types and constants The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
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.
|
Explanation
|
|
|
|
|
Поток открытого типа режима
Следующие константы определены также:
|
|
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[edit]
|
|
|
| app
|
стремиться к концу потока перед каждой записи Original: seek to the end of stream before each write The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| binary
|
открыть в двоичном режиме Original: open in binary mode The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| in
|
открыть для чтения Original: open for reading The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| out
|
открыть для записи Original: open for writing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| trunc
|
Удалите содержимое потока при открытии Original: discard the contents of the stream when opening The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| ate
|
стремиться к концу поток сразу после открытой Original: seek to the end of stream immediately after open The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
Original: stream open mode type
The following constants are also defined:
|
|
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[edit]
|
|
|
| app
|
стремиться к концу потока перед каждой записи Original: seek to the end of stream before each write The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| binary
|
открыть в двоичном режиме Original: open in binary mode The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| in
|
открыть для чтения Original: open for reading The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| out
|
открыть для записи Original: open for writing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| trunc
|
Удалите содержимое потока при открытии Original: discard the contents of the stream when opening The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| ate
|
стремиться к концу поток сразу после открытой Original: seek to the end of stream immediately after open The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (определение типа) [edit]
|
|
|
|
|
Тип форматирования флаги
Следующие константы определены также:
|
|
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[edit]
|
|
|
| dec
|
использовать десятичные базой для целого I / O Original: use decimal base for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| oct
|
использовать восьмеричное базой для целого I / O Original: use octal base for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| hex
|
использовать шестнадцатеричные базой для целого I / O Original: use hexadecimal base for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| basefield
|
dec|oct|hex|0. Полезно для маскировки операций Original: dec|oct|hex|0. Useful for masking operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| left
|
левая колонка (добавляет заполнения символов справа) Original: left adjustment (adds fill characters to the right) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| right
|
Право регулировки (добавляет заполнение символы слева) Original: right adjustment (adds fill characters to the left) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| internal
|
внутренняя настройка (добавляет символы заполнения внутренней назначенного пункта) Original: internal adjustment (adds fill characters to the internal designated point) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| adjustfield
|
left|right|internal. Полезно для маскировки операций Original: left|right|internal. Useful for masking operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| scientific
|
генерировать типы с плавающей точкой с использованием научных обозначений, или шестнадцатеричном виде в сочетании с фиксированным Original: generate floating point types using scientific notation, or hex notation if combined with fixed The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| fixed
|
генерировать типы с плавающей точкой с использованием фиксированных обозначения или шестнадцатеричном виде в сочетании с научными Original: generate floating point types using fixed notation, or hex notation if combined with scientific The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| floatfield
|
scientific|fixed|(scientific|fixed)|0. Полезно для маскировки операций Original: scientific|fixed|(scientific|fixed)|0. Useful for masking operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| boolalpha
|
вставлять и извлекать bool типа в буквенно-цифровом формате Original: insert and extract bool type in alphanumeric format The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| showbase
|
генерировать префикс, указывающий числовую основу для целого производства, требующие валюте показатель в денежном I / O Original: generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| showpoint
|
создать символ десятичной точки безоговорочно число с плавающей точкой выхода Original: generate a decimal-point character unconditionally for floating-point number output The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| showpos
|
создать + характер для неотрицательных цифровой выход Original: generate a + character for non-negative numeric output The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| skipws
|
пропустить ведущие пробелы перед определенных операций ввода Original: skip leading whitespace before certain input operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| unitbuf
|
удалить вывод после каждого выхода операцию Original: flush the output after each output operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| uppercase
|
заменить некоторые буквы нижнего регистра с их uppercase equivalents в некоторых операциях выход выход Original: replace certain lowercase letters with their uppercase equivalents in certain output output operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
Original: formatting flags type
The following constants are also defined:
|
|
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[edit]
|
|
|
| dec
|
использовать десятичные базой для целого I / O Original: use decimal base for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| oct
|
использовать восьмеричное базой для целого I / O Original: use octal base for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| hex
|
использовать шестнадцатеричные базой для целого I / O Original: use hexadecimal base for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| basefield
|
dec|oct|hex|0. Полезно для маскировки операций Original: dec|oct|hex|0. Useful for masking operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| left
|
левая колонка (добавляет заполнения символов справа) Original: left adjustment (adds fill characters to the right) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| right
|
Право регулировки (добавляет заполнение символы слева) Original: right adjustment (adds fill characters to the left) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| internal
|
внутренняя настройка (добавляет символы заполнения внутренней назначенного пункта) Original: internal adjustment (adds fill characters to the internal designated point) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| adjustfield
|
left|right|internal. Полезно для маскировки операций Original: left|right|internal. Useful for masking operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| scientific
|
генерировать типы с плавающей точкой с использованием научных обозначений, или шестнадцатеричном виде в сочетании с фиксированным Original: generate floating point types using scientific notation, or hex notation if combined with fixed The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| fixed
|
генерировать типы с плавающей точкой с использованием фиксированных обозначения или шестнадцатеричном виде в сочетании с научными Original: generate floating point types using fixed notation, or hex notation if combined with scientific The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| floatfield
|
scientific|fixed|(scientific|fixed)|0. Полезно для маскировки операций Original: scientific|fixed|(scientific|fixed)|0. Useful for masking operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| boolalpha
|
вставлять и извлекать bool типа в буквенно-цифровом формате Original: insert and extract bool type in alphanumeric format The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| showbase
|
генерировать префикс, указывающий числовую основу для целого производства, требующие валюте показатель в денежном I / O Original: generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| showpoint
|
создать символ десятичной точки безоговорочно число с плавающей точкой выхода Original: generate a decimal-point character unconditionally for floating-point number output The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| showpos
|
создать + характер для неотрицательных цифровой выход Original: generate a + character for non-negative numeric output The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| skipws
|
пропустить ведущие пробелы перед определенных операций ввода Original: skip leading whitespace before certain input operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| unitbuf
|
удалить вывод после каждого выхода операцию Original: flush the output after each output operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| uppercase
|
заменить некоторые буквы нижнего регистра с их uppercase equivalents в некоторых операциях выход выход Original: replace certain lowercase letters with their uppercase equivalents in certain output output operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (определение типа) [edit]
|
|
|
|
|
состояние потока типа
Следующие константы определены также:
|
|
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[edit]
|
|
|
| goodbit
|
никакой ошибки Original: no error The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| badbit
|
безвозвратные поток ошибок Original: irrecoverable stream error The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| failbit
|
операции ввода / вывода не удалось (форматирование или извлечения ошибки) Original: input/output operation failed (formatting or extraction error) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| eofbit
|
связанных входной последовательности достигли конца файла Original: associated input sequence has reached end-of-file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
Original: state of the stream type
The following constants are also defined:
|
|
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[edit]
|
|
|
| goodbit
|
никакой ошибки Original: no error The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| badbit
|
безвозвратные поток ошибок Original: irrecoverable stream error The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| failbit
|
операции ввода / вывода не удалось (форматирование или извлечения ошибки) Original: input/output operation failed (formatting or extraction error) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| eofbit
|
связанных входной последовательности достигли конца файла Original: associated input sequence has reached end-of-file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (определение типа) [edit]
|
|
|
|
|
seeking direction type
The following constants are also defined:
|
|
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[edit]
|
|
|
| beg
|
В начале потока Original: the beginning of a stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| end
|
окончание потока Original: the ending of a stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
|
|
| cur
|
текущей позиции потока индикатором положения Original: the current position of stream position indicator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. [edit]
|
(определение типа) [edit]
|
|
|
|
|
указывает тип события Original: specifies event type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (перечисление) [edit]
|
|
|
|
|
функцию обратного вызова типа Original: callback function type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (определение типа) [edit]
|
Устаревшие типы членов Original: Deprecated member types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
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.
|
Explanation
|
|
|
io_state(устарело)
|
целого типа, которые могут быть использованы как iostateOriginal: integer type that may be used like iostate The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
open_mode(устарело)
|
целого типа, которые могут быть использованы как openmodeOriginal: integer type that may be used like openmode The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
seek_dir(устарело)
|
целого типа, которые могут быть использованы как seekdirOriginal: integer type that may be used like seekdir The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
streamoff(устарело)
|
неопределенного типа, которые могут быть использованы как off_type, не обязательно std::streamoffOriginal: unspecified type that may be used like off_type, not necessarily std::streamoffThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
|
|
streampos(устарело)
|
неопределенного типа, которые могут быть использованы как pos_type, не обязательно std::streamposOriginal: unspecified type that may be used like pos_type, not necessarily std::streamposThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|