ADTF  3.18.4
rpc_stubs.h File Reference

Copyright © Audi Electronics Venture GmbH. More...

Go to the source code of this file.

Classes

class  cAdtfJsonConverter
 
class  rpc_remote_interface< Stub, Interface >
 
class  rpc_object_server< ServerStub, Interface >
 

Namespaces

 adtf
 Namespace for entire ADTF SDK.
 
 adtf::remote
 Namespace for the ADTF Remote SDK.
 
 adtf::remote::hollow
 Namespace for all functionality of the ADTF Remote SDK provided since v3.7.
 

Macros

#define EXCEPTION_TO_DEFAULT(__default, __body)
 macro to return a default value in case of an exception More...
 
#define EXCEPTION_TO_DEFAULT_AND_LOG(__default, __body)
 macro to return a default value in case of an exception More...
 
#define EXCEPTION_TO_RESULT(__body)
 macro to return a tResult in case of an exception More...
 

Detailed Description

Copyright © Audi Electronics Venture GmbH.

All rights reserved

Definition in file rpc_stubs.h.

Macro Definition Documentation

◆ EXCEPTION_TO_DEFAULT

#define EXCEPTION_TO_DEFAULT (   __default,
  __body 
)
Value:
try \
{ \
__body \
} \
catch (...) \
{ \
return __default; \
}

macro to return a default value in case of an exception

Definition at line 28 of file rpc_stubs.h.

◆ EXCEPTION_TO_DEFAULT_AND_LOG

#define EXCEPTION_TO_DEFAULT_AND_LOG (   __default,
  __body 
)
Value:
try \
{ \
__body \
} \
catch (const std::exception& oEx) \
{ \
LOG_ERROR(oEx.what()); \
return __default; \
} \
catch (const tResult& oResult) \
{ \
LOG_RESULT(oResult); \
return __default; \
} \
catch (...) \
{ \
return __default; \
}

macro to return a default value in case of an exception

Definition at line 41 of file rpc_stubs.h.

◆ EXCEPTION_TO_RESULT

#define EXCEPTION_TO_RESULT (   __body)
Value:
try \
{ \
__body \
} \
catch (const std::exception& oEx) \
{ \
RETURN_ERROR_DESC(ERR_FAILED, "RPC call failed: %s", oEx.what()); \
} \
catch (...) \
{ \
RETURN_ERROR(ERR_FAILED); \
}

macro to return a tResult in case of an exception

Definition at line 75 of file rpc_stubs.h.