neuray Services API Programmer's Manual

ibinary.h File Reference

Description

raw data type

Code Example

ibinary.h

‎//*****************************************************************************
// Copyright 1986-2011 by mental images GmbH, Fasanenstr. 81, D-10623 Berlin,
// Germany. All rights reserved.
//*****************************************************************************
//*****************************************************************************
#ifndef MI_NSERVICES_IBINARY_H
#define MI_NSERVICES_IBINARY_H

#include <mi/neuraylib/idata.h>

namespace mi {
namespace neuraylib {
class IBuffer;
} // namespace neuraylib
namespace nservices {







class IBinary : public
    mi::base::Interface_declare<0x435637C3,0xB111,0xDF90,0x88,0xF2,0xD6,0x9D,0x71,0x4C,0xAC,0x0C,
    mi::IData>
{
public:
    virtual Size 
               get_data_size() const = 0;

    virtual const Uint8 *get_data() const = 0;

    virtual const char *get_mime_type() const = 0;

    virtual Sint32 
               set_data(const Uint8* data, Size data_size, const char *mime_type=NULL) = 0;

    virtual Sint32 
               set_data(neuraylib::IBuffer *buffer, const char *mime_type=NULL) = 0;
};
 // end group mi_nservices_types

} // namespace nservices
} // namespace mi

#endif // MI_NSERVICES_IBINARY_H

Namespaces

namespace mi
namespace mi::neuraylib
namespace 
Namespace for the neuray Services API. More...

Classes

class 
This interface represents binary data. More...