29 #ifndef CPP_INTROSPECTION_MESSAGE_EXPANSION_H 30 #define CPP_INTROSPECTION_MESSAGE_EXPANSION_H 45 virtual const char*
getPackageName()
const {
return parent_->getPackageName(); }
47 virtual const char*
getName()
const {
return parent_->getName(); }
48 virtual const char*
getDataType()
const {
return parent_->getDataType(); }
49 virtual const char*
getMD5Sum()
const {
return parent_->getMD5Sum(); }
50 virtual const char*
getDefinition()
const {
return parent_->getDefinition(); }
51 virtual const std::type_info&
getTypeId()
const {
return parent_->getTypeId(); }
53 virtual bool isMessage()
const {
return parent_->isMessage(); }
54 virtual bool isSimple()
const {
return parent_->isSimple(); }
55 virtual bool isFixedSize()
const {
return parent_->isFixedSize(); }
56 virtual bool hasHeader()
const {
return parent_->hasHeader(); }
58 virtual std_msgs::Header*
getHeader(
const VoidPtr& instance)
const {
return parent_->getHeader(instance); }
59 virtual const std_msgs::Header*
getHeader(
const VoidConstPtr& instance)
const {
return parent_->getHeader(instance); }
60 virtual std::string*
getFrameId(
const VoidPtr& instance)
const {
return parent_->getFrameId(instance); }
71 virtual bool hasInstance()
const {
return parent_->hasInstance(); }
93 , separator_(separator)
101 virtual FieldWPtr field(
const std::string& name)
const {
return fields_by_name_.at(name); }
119 : parent_(parent), index_(index), name_(!name.empty() ? name : parent_.
getName())
125 virtual const char*
getName()
const {
return name_.c_str(); }
132 virtual bool isArray()
const {
return false; }
140 virtual boost::any
get(std::size_t i = 0)
const {
return parent_.
get(index_); }
141 virtual void setAny(
const boost::any& value, std::size_t i = 0)
const { parent_.
setAny(value, index_); }
148 #endif // CPP_INTROSPECTION_MESSAGE_EXPANSION_H virtual ros::Time * getTimeStamp(const VoidPtr &instance) const
virtual bool isSimple() const
virtual const std::type_info & getTypeId() const =0
virtual VoidConstPtr getConstInstance() const
virtual TypePtr getType() const
virtual bool isSimple() const =0
virtual boost::any get(std::size_t i=0) const
std::vector< FieldPtr > V_Field
virtual const ros::Time * getTimeStamp(const VoidConstPtr &instance) const
virtual bool isMessage() const
virtual bool isFixedSize() const =0
virtual const char * getValueType() const
virtual const char * getDefinition() const
boost::weak_ptr< Field const > FieldWPtr
virtual const char * getPackageName() const
std::map< std::string, FieldWPtr > M_Field
virtual bool isMessage() const =0
virtual VoidPtr createInstance() const
virtual bool isVector() const
virtual const std::string * getFrameId(const VoidConstPtr &instance) const
virtual const char * getDataType() const
virtual void serialize(ros::serialization::OStream &stream, const VoidConstPtr &instance=VoidConstPtr()) const
virtual VoidPtr deserialize(ros::serialization::IStream &stream, const VoidPtr &instance=VoidPtr()) const
virtual bool isContainer() const
virtual bool isArray() const
virtual ros::SerializedMessage serialize(const VoidConstPtr &instance=VoidConstPtr()) const
MessagePtr expand(const MessagePtr &message, const std::string &separator=".", const std::string &prefix="")
virtual const V_FieldName & getFieldNames() const
ExpandedField(const Field &parent, std::string name=std::string(), std::size_t index=0)
virtual std::string * getFrameId(const VoidPtr &instance) const
virtual void setAny(const boost::any &value, std::size_t i=0) const
virtual bool hasInstance() const
virtual ~ExpandedMessage()
virtual FieldWPtr field(const std::string &name) const
boost::shared_ptr< void > VoidPtr
virtual const char * getValueType() const =0
virtual const Message & message() const
virtual MessagePtr introspect(void *instance) const
virtual std::size_t serializationLength(const VoidConstPtr &instance=VoidConstPtr()) const
virtual TypePtr getType() const
virtual bool hasInstance() const
virtual MessagePtr introspect(const VoidConstPtr &instance) const
virtual MessagePtr introspect(void *instance) const
virtual bool hasInstance() const
ExpandedMessage(const MessagePtr &parent, const std::string &separator=".", const std::string &prefix=std::string())
virtual const std_msgs::Header * getHeader(const VoidConstPtr &instance) const
boost::shared_ptr< Field const > FieldPtr
virtual const std::type_info & getTypeId() const
virtual bool isFixedSize() const
boost::shared_ptr< void const > VoidConstPtr
virtual const V_Field & fields() const
virtual const std::type_info & getTypeId() const
virtual ~MessageForwarder()
virtual void setAny(const boost::any &value, std::size_t i=0) const
virtual VoidPtr getInstance() const
virtual PackagePtr package() const
virtual MessagePtr introspect(void const *instance) const
virtual MessagePtr introspect(void const *instance) const
const MessagePtr & parent_
virtual std::size_t getIndex() const
virtual const char * getName() const
virtual const char * getDataType() const
virtual bool isSimple() const
virtual const char * getMD5Sum() const
virtual bool isMessage() const
MessageForwarder(const MessagePtr &parent)
boost::shared_ptr< Message const > MessagePtr
virtual const Message & message() const =0
virtual std_msgs::Header * getHeader(const VoidPtr &instance) const
virtual bool hasHeader() const
virtual bool isFixedSize() const
virtual FieldPtr access(AccessorBase &accessor) const
std::vector< const char * > V_FieldName
virtual const char * getName() const
virtual std::size_t getIndex() const =0
virtual MessagePtr introspect(const VoidPtr &instance) const