PLaSK library

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
plask::CFileOutput Struct Reference
Inheritance diagram for plask::CFileOutput:
[legend]
Collaboration diagram for plask::CFileOutput:
[legend]

## Public Member Functions
| CFileOutput (FILE *file)
void | write (const char *buffer, std::size_t n) override
| Write bytes from buffer.
Public Member Functions inherited from plask::XMLWriter::Output
virtual | ~Output ()
template<int n>
void | puts (const char(&str)[n])
| Write `n` - 1 bytes from `str`.
virtual void | put (char c)
| Write one character `c`.
void | newline ()
| Write new line character (end-line) to this output.

## Public Attributes
FILE * | file

## Detailed Description

Definition at line 49 of file writer.cpp.

## Constructor & Destructor Documentation

## ◆ CFileOutput()

plask::CFileOutput::CFileOutput | ( | FILE * | file | ) |
| inline

Definition at line 53 of file writer.cpp.

## Member Function Documentation

## ◆ write()

void plask::CFileOutput::write | ( | const char * | buffer,
|  | std::size_t | n
| ) |  |
| inline override virtual

Write
bytes from buffer.

Parameters

  buffer | buffer with data with size `n` or more
  n | number of bytes to write

Implements plask::XMLWriter::Output.

Definition at line 55 of file writer.cpp.

## Member Data Documentation

## ◆ file

FILE* plask::CFileOutput::file

Definition at line 51 of file writer.cpp.

The documentation for this struct was generated from the following file:

- plask/utils/xml/writer.cpp