Applying doxy fixes

parent bab472a4
......@@ -17,7 +17,7 @@
VANet provides a transparent network communication of calls to the VA interface. It is useful to control a VA server remotely and is the standard way to communicate with VA for inter-process methods and bindings for other scripting languages.
@section license_sec License
@section vanet_license_sec License
Copyright 2015-2017 Institute of Technical Acoustics (ITA), RWTH Aachen University
......@@ -35,7 +35,7 @@ limitations under the License.
You should also have received a [copy of the License](LICENSE.md) with the VA software package.
@section getting_started Getting started
@section vanet_getting_started Getting started
If you are a C++ developer and want to integrate VANet into your application, the first contact point should be the #VANetClient.
If you want to provide a VA server connection, have a look at #VANetServer.
......
......@@ -1933,23 +1933,6 @@ void CVANetClientImpl::Cleanup()
}
void CVANetClientImpl::AttachEventHandler( IVAEventHandler* pCoreEventHandler )
{
if( IsConnected() == false ) VA_EXCEPT2( MODAL_ERROR, "Not connected." );
assert( m_pEventReceiver != NULL );
m_pEventReceiver->AttachCoreEventHandler( pCoreEventHandler );
m_pProtocol->ClientAttachEventHandler();
}
void CVANetClientImpl::DetachEventHandler( IVAEventHandler* pCoreEventHandler )
{
if( IsConnected() == false ) VA_EXCEPT2( MODAL_ERROR, "Not connected." );
assert( m_pEventReceiver != NULL );
m_pEventReceiver->DetachCoreEventHandler( pCoreEventHandler );
m_pProtocol->ClientDetachEventHandler();
}
void CVANetClientImpl::ProcessEventChannelError()
{
std::cerr << "VANetClient: Lost connection to server" << std::endl;
......@@ -2027,7 +2010,7 @@ void CVANetClientImpl::EmitEvent( const int iID )
EmitEvent( oEvent );
}
bool CVANetClientImpl::AttachEventHandler( IEventHandler* pHandler )
bool CVANetClientImpl::AttachEventHandler( IVANetClient::IEventHandler* pHandler )
{
VistaMutexLock oLock( *m_pEventChannelLock );
std::list<IEventHandler*>::iterator itEntry = std::find( m_liEventHandlers.begin(), m_liEventHandlers.end(), pHandler );
......@@ -2037,7 +2020,8 @@ bool CVANetClientImpl::AttachEventHandler( IEventHandler* pHandler )
return true;
}
bool CVANetClientImpl::DetachEventHandler( IEventHandler* pHandler ) {
bool CVANetClientImpl::DetachEventHandler( IVANetClient::IEventHandler* pHandler )
{
VistaMutexLock oLock( *m_pEventChannelLock );
std::list<IEventHandler*>::iterator itEntry = std::find( m_liEventHandlers.begin(), m_liEventHandlers.end(), pHandler );
if( itEntry == m_liEventHandlers.end() )
......@@ -2045,3 +2029,21 @@ bool CVANetClientImpl::DetachEventHandler( IEventHandler* pHandler ) {
m_liEventHandlers.erase( itEntry );
return true;
}
void CVANetClientImpl::AttachEventHandler( IVAEventHandler* pCoreEventHandler )
{
if( IsConnected() == false ) VA_EXCEPT2( MODAL_ERROR, "Not connected." );
assert( m_pEventReceiver != NULL );
m_pEventReceiver->AttachCoreEventHandler( pCoreEventHandler );
m_pProtocol->ClientAttachEventHandler();
}
void CVANetClientImpl::DetachEventHandler( IVAEventHandler* pCoreEventHandler )
{
if( IsConnected() == false ) VA_EXCEPT2( MODAL_ERROR, "Not connected." );
assert( m_pEventReceiver != NULL );
m_pEventReceiver->DetachCoreEventHandler( pCoreEventHandler );
m_pProtocol->ClientDetachEventHandler();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment