ADTF
Loading...
Searching...
No Matches
rpc_stubs.h File Reference
#include "rpc_object_client_intf.h"
#include "rpc_object_server_registry_intf.h"
#include "adtf_client_connector.h"
#include <jsonrpccpp/server/abstractserverconnector.h>
#include <a_util/result.h>
#include <rpc/json_rpc.h>
#include <rpc/rpc_server.h>
#include <json/value.h>
#include <adtf_utils.h>
#include <adtfucom3/adtf_ucom3.h>
#include <adtfbase/string_intf.h>
#include <adtfbase/rawmemory_intf.h>
#include <sstream>
Include dependency graph for rpc_stubs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  adtf::remote::hollow::cAdtfJsonConverter
 
class  adtf::remote::hollow::rpc_remote_interface< Stub, Interface >
 
class  adtf::remote::hollow::rpc_object_server< ServerStub, Interface >
 
class  adtf::remote::rpc_remote_interface< Stub, Interface >
 
class  adtf::remote::rpc_object_server< ServerStub, Interface >
 
class  adtf::remote::cAdtfJsonConverter
 

Namespaces

namespace  adtf
 Namespace for all functionality provided by ADTF and its SDKs.
 
namespace  adtf::remote
 Namespace for the ADTF Remote SDK.
 
namespace  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
 
#define EXCEPTION_TO_DEFAULT_AND_LOG(__default, __body)
 macro to return a default value in case of an exception
 
#define EXCEPTION_TO_RESULT(__body)
 macro to return a tResult in case of an exception
 

Detailed Description

Copyright © Audi Electronics Venture GmbH. All rights reserved

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

◆ EXCEPTION_TO_DEFAULT_AND_LOG

#define EXCEPTION_TO_DEFAULT_AND_LOG ( __default,
__body )
Value:
try \
{ \
__body \
} \
catch (const std::exception& oEx) \
{ \
LOG_ERROR("%s", oEx.what()); \
return __default; \
} \
catch (const tResult& oResult) \
{ \
LOG_RESULT(oResult); \
return __default; \
} \
catch (...) \
{ \
return __default; \
}
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736

macro to return a default value in case of an exception

◆ 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