#include <RemoteViz/Rendering/ConnectionParameters.h>
Public Member Functions | |
unsigned int | getNumParameters () const |
const std::string & | getValue (int index) const |
const std::string & | getValue (const std::string &key) const |
const std::string & | getKey (int index) const |
int | getIndex (const std::string &key) const |
Field-value pairs included in the URL when the client requested a connection. See RemoteVizRenderArea::connectTo and SoRemoteVizClient::connectionParameters.
A ConnectionParameters object is passed to ServiceListener::onPendingCreateRenderArea and to ServiceListener::onPendingShareRenderArea.
The application can also query this object from a Connection object. The Connection object can obtained in, e.g., RenderAreaListener::onInitializedConnection().
int RemoteViz::Rendering::ConnectionParameters::getIndex | ( | const std::string & | key | ) | const |
Gets the index associated with a key.
const std::string& RemoteViz::Rendering::ConnectionParameters::getKey | ( | int | index | ) | const |
Gets the key associated with an index.
index | : the parameter index. Range id [0..getNumParameters - 1] |
unsigned int RemoteViz::Rendering::ConnectionParameters::getNumParameters | ( | ) | const |
Gets the number of parameters.
const std::string& RemoteViz::Rendering::ConnectionParameters::getValue | ( | const std::string & | key | ) | const |
Gets the value of a parameter associated with a key.
key | : the key |
const std::string& RemoteViz::Rendering::ConnectionParameters::getValue | ( | int | index | ) | const |
Gets the value of a parameter associated with an index.
index | : the parameter index. Range id [0..getNumParameters - 1] |