39 #ifndef WAREHOUSE_ROS_MESSAGE_COLLECTION_H 40 #define WAREHOUSE_ROS_MESSAGE_COLLECTION_H 49 virtual bool initialize(
const std::string& datatype,
const std::string& md5) = 0;
52 bool ascending =
true)
const = 0;
55 virtual unsigned count() = 0;
94 const std::string& sort_by =
"",
bool ascending =
true)
const;
98 std::vector<typename MessageWithMetadata<M>::ConstPtr> queryList(
Query::ConstPtr query,
bool metadata_only =
false,
99 const std::string& sort_by =
"",
100 bool ascending =
true)
const;
121 bool md5SumMatches()
const;
139 #endif // include guard virtual unsigned removeMessages(Query::ConstPtr query)=0
virtual void insert(char *msg, size_t msg_size, Metadata::ConstPtr metadata)=0
virtual void modifyMetadata(Query::ConstPtr q, Metadata::ConstPtr m)=0
std::pair< ResultIterator< M >, ResultIterator< M > > range_t
virtual std::string collectionName() const =0
virtual unsigned count()=0
boost::shared_ptr< MessageCollectionHelper > Ptr
MessageCollectionHelper::Ptr collection_
boost::shared_ptr< MessageCollection< M > > Ptr
virtual bool initialize(const std::string &datatype, const std::string &md5)=0
virtual Query::Ptr createQuery() const =0
virtual Metadata::Ptr createMetadata() const =0
virtual ResultIteratorHelper::Ptr query(Query::ConstPtr query, const std::string &sort_by="", bool ascending=true) const =0