NVIDIA Iray API Home  Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
idictionary.h
Go to the documentation of this file.
1 //*****************************************************************************
2 // Copyright 1986, 2016 NVIDIA Corporation. All rights reserved.
3 //*****************************************************************************
6 //*****************************************************************************
7 
8 #ifndef MI_NEURAYLIB_IDICTIONARY_H
9 #define MI_NEURAYLIB_IDICTIONARY_H
10 
12 #include <mi/neuraylib/version.h>
13 
14 namespace mi {
15 
16 namespace neuraylib {
17 
22 class IDictionary :
43  public base::Interface_declare<0xea00ed83,0x210e,0x4d65,0xa9,0x8d,0xfe,0xfa,0xb6,0xeb,0x03,0x2c>
44 {
45 public:
54  virtual bool set( const char* key, bool value) = 0;
55 
64  virtual bool set( const char* key, const char* value) = 0;
65 
74  virtual bool set( const char* key, Uint32 value) = 0;
75 
84  virtual bool set( const char* key, Sint32 value) = 0;
85 
95  virtual bool set( const char* key, Float32 value) = 0;
96 
105  virtual bool set( const char* key, Float64 value) = 0;
106 
108  virtual bool is_defined( const char* key) const = 0;
109 
113  virtual const char* get( const char* key, const char* default_value) const = 0;
114 
118  virtual bool get( const char* key, bool default_value) const = 0;
119 
123  virtual Sint32 get( const char* key, Sint32 default_value) const = 0;
124 
128  virtual Uint32 get( const char* key, Uint32 default_value) const = 0;
129 
133  virtual Float32 get( const char* key, Float32 default_value) const = 0;
134 
138  virtual Float64 get( const char* key, Float64 default_value) const = 0;
139 
143  virtual bool is_invalid() const = 0;
144 };
145  // end group mi_neuray_functors
147 
148 } // namespace neuraylib
149 
150 #ifdef MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION
151 using neuraylib::IDictionary;
152 #endif // MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION
153 
154 } // namespace mi
155 
156 #endif // MI_NEURAYLIB_IDICTIONARY_H