NVIDIA Iray API Home  Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
iiray_bridge_server.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_IIRAY_BRIDGE_SERVER_H
9 #define MI_NEURAYLIB_IIRAY_BRIDGE_SERVER_H
10 
11 #include <mi/base/enums.h>
13 
14 
15 namespace mi {
16 
17 namespace http { class IServer; }
18 
19 namespace bridge {
20 
21 class IApplication_session_handler;
22 
27 class IIray_bridge_application : public
34  mi::base::Interface_declare<0x199fadaf,0xf8c0,0x4d40,0xaf,0x20,0x95,0x6c,0x1d,0x73,0xf4,0xa4>
35 {
36 public:
54  virtual Sint32 set_disk_cache( const char* location) = 0;
55 
59  virtual const char* get_disk_cache() const = 0;
60 
71  virtual Sint32 open(bool enable_streaming = true) = 0;
72 
79  virtual Sint32 close() = 0;
80 
92  virtual Sint32 set_session_handler( IApplication_session_handler* handler) = 0;
93 
95  virtual IApplication_session_handler* get_session_handler() const = 0;
96 
114 
121 
129  virtual Sint32 set_snapshot_path( const char* path) = 0;
130 
132  virtual const char* get_snapshot_path() const = 0;
133 };
134 
138 class IIray_bridge_server : public
139  mi::base::Interface_declare<0x1acd50a4,0xbc89,0x4712,0x97,0xd,0x79,0xf2,0x99,0x8b,0x4,0x12>
140 {
141 public:
159  const char* application_path, http::IServer* http_server) = 0;
160 
162  virtual const char* get_bridge_protocol_version() const = 0;
163 
178  virtual Sint32 delete_snapshot( const char* snapshot_path) = 0;
179 };
180  // end group mi_neuray_bridge_server
182 
183 } // namespace bridge
184 
185 } // namespace mi
186 
187 #endif // MI_NEURAYLIB_IBRIDGE_SERVER_H