API component that serves as entry point for the server-side Bridge API. More...
#include <ibridge_server.h>
Public Member Functions | |
virtual IApplication * | create_application (const char *application_path, http::IServer *http_server)=0 |
Creates a Bridge application. More... | |
virtual IBridge_snapshot_context * | create_snapshot_context (const char *disk_cache)=0 |
Creates a snapshot context for importing or deleting snapshots. More... | |
virtual const char * | get_bridge_protocol_version () const =0 |
Returns the Bridge protocol version string. More... | |
virtual Sint32 | calculate_hash (neuraylib::ITransaction *transaction, const char *element, IString *o_hash, Size *o_size)=0 |
Returns the hash and serialized size for the provided element. More... | |
Public Member Functions inherited from mi::base::IInterface | |
virtual Uint32 | retain () const =0 |
Increments the reference count. More... | |
virtual Uint32 | release () const =0 |
Decrements the reference count. More... | |
virtual const IInterface * | get_interface (const Uuid &interface_id) const =0 |
Acquires a const interface from another. More... | |
template<class T> | |
const T * | get_interface () const |
Acquires a const interface from another. More... | |
virtual IInterface * | get_interface (const Uuid &interface_id)=0 |
Acquires a mutable interface from another. More... | |
template<class T> | |
T * | get_interface () |
Acquires a mutable interface from another. More... | |
virtual Uuid | get_iid () const =0 |
Returns the interface ID of the most derived interface. More... | |
Additional Inherited Members | |
Public Types inherited from mi::base::Interface_declare< 0x1fd8a3ac, ... > | |
typedef Interface_declare< id1, ... > | Self |
Own type. More... | |
typedef Uuid_t< id1, ... > | IID |
Declares the interface ID (IID) of this interface. More... | |
Public Types inherited from mi::base::IInterface | |
typedef Uuid_t<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0> | IID |
Declares the interface ID (IID) of this interface. More... | |
Static Public Member Functions inherited from mi::base::Interface_declare< 0x1fd8a3ac, ... > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Static Public Member Functions inherited from mi::base::IInterface | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface. More... | |
API component that serves as entry point for the server-side Bridge API.
Can be used to create Bridge application and a context to import or remove snapshots.
|
pure virtual |
Returns the hash and serialized size for the provided element.
transaction | The transaction to use when looking up the element. |
element | The name of the element. |
o_hash | The hash will be written to this IString on success. |
o_size | The serialized size in bytes will be assigned to this variable on success. |
|
pure virtual |
Creates a Bridge application.
The application will listen on the provided path on the given HTTP server for clients. The application has to be opened for connections before clients can open a session to it.
application_path | The path component of the WebSocket URL to the application. This identifier allows to run different Bridge applications on the same HTTP server. Note that the application path must begin with a slash. |
http_server | The HTTP server instance that handles WebSocket requests for this application. |
NULL
in case of failure (invalid arguments, application_path
does not start with a slash, or an application for these arguments exists already).
|
pure virtual |
Creates a snapshot context for importing or deleting snapshots.
disk_cache | The location of the disk cache. This can be either a directory on the local machine (prefix "path:" ) or the address of some cache manager (prefix "address:" ). |
|
pure virtual |
Returns the Bridge protocol version string.