MDL SDK API nvidia_logo_transpbg.gif Up
iwriter.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2024 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_IWRITER_H
8#define MI_NEURAYLIB_IWRITER_H
9
11
12namespace mi {
13
14namespace neuraylib {
15
24class IWriter :
25 public base::Interface_declare<0x0e6ecfbc,0x78c3,0x4082,0xba,0x51,0xa3,0x60,0xbb,0x1d,0x6f,0xc0,
26 neuraylib::IReader_writer_base>
27{
28public:
34 virtual Sint64 write( const char* buffer, Sint64 size) = 0;
35
41 virtual bool writeline( const char* str) = 0;
42
45 virtual bool flush() = 0;
46};
47 // end group mi_neuray_impexp
49
50} // namespace neuraylib
51
52} // namespace mi
53
54#endif // MI_NEURAYLIB_IWRITER_H
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
A writer supports binary block writes and string-oriented line writes that accept a zero-terminated s...
Definition: iwriter.h:27
virtual bool writeline(const char *str)=0
Writes a zero-terminated string to the stream.
virtual Sint64 write(const char *buffer, Sint64 size)=0
Writes a number of bytes to the stream.
virtual bool flush()=0
Flushes all buffered output to the stream.
long long Sint64
64-bit signed integer.
Definition: types.h:61
Base interface common for readers and writers.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: example_derivatives.dox:5