neuray API Programmer's Manual

iwriter.h File Reference

Description

Writers, used by exporters.

Code Example

iwriter.h

‎/***************************************************************************************************
 * Copyright 2024 NVIDIA Corporation. All rights reserved.
 **************************************************************************************************/

#ifndef MI_NEURAYLIB_IWRITER_H
#define MI_NEURAYLIB_IWRITER_H

#include <mi/neuraylib/ireader_writer_base.h>

namespace mi {

namespace neuraylib {



class IWriter :
    public base::Interface_declare<0x0e6ecfbc,0x78c3,0x4082,0xba,0x51,0xa3,0x60,0xbb,0x1d,0x6f,0xc0,
                                   neuraylib::IReader_writer_base>
{
public:
    virtual Sint64 
               write( const char* buffer, Sint64 size) = 0;

    virtual bool writeline( const char* str) = 0;

    virtual bool flush() = 0;
};
 // end group mi_neuray_impexp

} // namespace neuraylib

} // namespace mi

#endif // MI_NEURAYLIB_IWRITER_H

Namespaces

namespace 
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH. More...
namespace 
Namespace for the neuray API. More...

Classes

class 
A writer supports binary block writes and string-oriented line writes that accept a zero-terminated string as argument. More...