CARLA
 
载入中...
搜索中...
未找到
命名空间 | 宏定义 | 函数
ActorAttribute.cpp 文件参考
#include "carla/client/ActorAttribute.h"
#include "carla/Exception.h"
#include "carla/Logging.h"
#include "carla/StringUtil.h"
+ ActorAttribute.cpp 的引用(Include)关系图:

浏览源代码.

命名空间

namespace  carla
 This file contains definitions of common data structures used in traffic manager.
 
namespace  carla::client
 

宏定义

#define LIBCARLA_THROW_BAD_VALUE_CAST(type)
 
#define LIBCARLA_THROW_INVALID_VALUE(message)   throw_exception(InvalidAttributeValue(GetId() + ": " + message));
 

函数

template<>
sensor::data::Color carla::client::ActorAttributeValueAccess::As< sensor::data::Color > () const
 
template<>
std::string carla::client::ActorAttributeValueAccess::As< std::string > () const
 

宏定义说明

◆ LIBCARLA_THROW_BAD_VALUE_CAST

#define LIBCARLA_THROW_BAD_VALUE_CAST ( type)
值:
if (GetType() != rpc::ActorAttributeType:: type) { \
throw_exception(BadAttributeCast(GetId() + ": bad attribute cast: cannot convert to " #type)); \
}

在文件 ActorAttribute.cpp17 行定义.

被这些函数引用 carla::client::ActorAttributeValueAccess::As< sensor::data::Color >(), carla::client::ActorAttributeValueAccess::As< std::string >() , 以及 carla::client::ActorAttributeValueAccess::As().

◆ LIBCARLA_THROW_INVALID_VALUE

#define LIBCARLA_THROW_INVALID_VALUE ( message)    throw_exception(InvalidAttributeValue(GetId() + ": " + message));