vrpn 07.35
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
vrpn_SendTextMessageStreamProxy Class Reference

#include <vrpn_SendTextMessageStreamProxy.h>

Public Member Functions

template<typename T >
 vrpn_SendTextMessageStreamProxy (vrpn_BaseClassUnique::SendTextMessageBoundCall const &call, T const &firstData)
 Templated constructor taking anything streamable.
 
 vrpn_SendTextMessageStreamProxy (vrpn_BaseClassUnique::SendTextMessageBoundCall const &call, std::string const &firstData)
 Constructor taking a std::string, since we can use the ostringstream's std::string constructor in this case.
 
 vrpn_SendTextMessageStreamProxy (vrpn_SendTextMessageStreamProxy const &other)
 Copy constructor - required for return by value (?)
 
 ~vrpn_SendTextMessageStreamProxy ()
 Destructor performs the send_text_message call with all contents streamed into it.
 
template<typename T >
std::ostream & operator<< (T const &other)
 Template operator<<, used for the second item streamed into the results of a BoundCall-returning send_text_message() call. The first one is handled below, and creates this temporary proxy object. Now, we can return a reference to the internal ostream, and we'll still stick around until the end of the statement to make the call once it's all done.
 

Detailed Description

Definition at line 41 of file vrpn_SendTextMessageStreamProxy.h.

Constructor & Destructor Documentation

◆ vrpn_SendTextMessageStreamProxy() [1/3]

template<typename T >
vrpn_SendTextMessageStreamProxy::vrpn_SendTextMessageStreamProxy ( vrpn_BaseClassUnique::SendTextMessageBoundCall const & call,
T const & firstData )
inline

Templated constructor taking anything streamable.

Definition at line 57 of file vrpn_SendTextMessageStreamProxy.h.

◆ vrpn_SendTextMessageStreamProxy() [2/3]

vrpn_SendTextMessageStreamProxy::vrpn_SendTextMessageStreamProxy ( vrpn_BaseClassUnique::SendTextMessageBoundCall const & call,
std::string const & firstData )
inline

Constructor taking a std::string, since we can use the ostringstream's std::string constructor in this case.

Definition at line 67 of file vrpn_SendTextMessageStreamProxy.h.

◆ vrpn_SendTextMessageStreamProxy() [3/3]

vrpn_SendTextMessageStreamProxy::vrpn_SendTextMessageStreamProxy ( vrpn_SendTextMessageStreamProxy const & other)
inline

Copy constructor - required for return by value (?)

Definition at line 76 of file vrpn_SendTextMessageStreamProxy.h.

◆ ~vrpn_SendTextMessageStreamProxy()

vrpn_SendTextMessageStreamProxy::~vrpn_SendTextMessageStreamProxy ( )
inline

Destructor performs the send_text_message call with all contents streamed into it.

Definition at line 85 of file vrpn_SendTextMessageStreamProxy.h.

Member Function Documentation

◆ operator<<()

template<typename T >
std::ostream & vrpn_SendTextMessageStreamProxy::operator<< ( T const & other)
inline

Template operator<<, used for the second item streamed into the results of a BoundCall-returning send_text_message() call. The first one is handled below, and creates this temporary proxy object. Now, we can return a reference to the internal ostream, and we'll still stick around until the end of the statement to make the call once it's all done.

Definition at line 93 of file vrpn_SendTextMessageStreamProxy.h.


The documentation for this class was generated from the following file: