Go to the documentation of this file.
39 #ifndef WAREHOUSE_ROS_MESSAGE_COLLECTION_H
40 #define WAREHOUSE_ROS_MESSAGE_COLLECTION_H
52 bool ascending =
true)
const = 0;
55 virtual unsigned count() = 0;
90 const std::string& sort_by =
"",
bool ascending =
true)
const;
95 const std::string& sort_by =
"",
96 bool ascending =
true)
const;
135 #endif // include guard
virtual void insert(char *msg, size_t msg_size, Metadata::ConstPtr metadata)=0
unsigned removeMessages(Query::ConstPtr query)
Remove messages matching query.
MessageCollection()=default
Default constructor.
Query::Ptr createQuery() const
unsigned count()
Count messages in collection.
virtual void modifyMetadata(Query::ConstPtr q, Metadata::ConstPtr m)=0
virtual unsigned removeMessages(Query::ConstPtr query)=0
void insert(const M &msg, Metadata::Ptr metadata)
Insert a ROS message, together with some optional metadata, into the db.
MessageWithMetadata< M >::ConstPtr findOne(Query::ConstPtr query, bool metadata_only=false) const
Convenience function that returns a single matching result for the query.
Metadata::Ptr createMetadata() const
virtual std::string collectionName() const =0
virtual unsigned count()=0
MessageCollectionHelper::Ptr collection_
std::pair< ResultIterator< M >, ResultIterator< M > > range_t
boost::shared_ptr< MessageCollection< M > > Ptr
bool md5SumMatches() const
Check if the md5 sum of the messages previously stored in the database matches that of the compiled m...
boost::shared_ptr< MessageCollectionHelper > Ptr
QueryResults< M >::range_t query(Query::ConstPtr query, bool metadata_only=false, const std::string &sort_by="", bool ascending=true) const
virtual Metadata::Ptr createMetadata() const =0
virtual Query::Ptr createQuery() const =0
virtual ~MessageCollectionHelper()=default
std::vector< typename MessageWithMetadata< M >::ConstPtr > queryList(Query::ConstPtr query, bool metadata_only=false, const std::string &sort_by="", bool ascending=true) const
Convenience function that calls queryResult and puts the results into a vector.
void modifyMetadata(Query::ConstPtr q, Metadata::ConstPtr m)
Modify metadata Find message matching q and update its metadata using m In other words,...
virtual bool initialize(const std::string &datatype, const std::string &md5)=0
virtual ResultIteratorHelper::Ptr query(Query::ConstPtr query, const std::string &sort_by="", bool ascending=true) const =0
warehouse_ros
Author(s): Bhaskara Marthi
, Connor Brew
autogenerated on Wed Oct 16 2024 02:42:07