Reader.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @author Fabian Reister ( fabian dot reister at kit dot edu )
17 * @date 2021
18 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19 * GNU General Public License
20 */
21
22#pragma once
23
24#include <string>
25
27
31
33
35{
36
38 {
39 public:
41 ~Reader() override;
42
49
51 {
53
60
61 std::string errorMessage = "";
62
63 operator bool() const noexcept
64 {
65 return status == Status::Success;
66 }
67 };
68
70 {
72
79
80 std::string errorMessage = "";
81
82 operator bool() const noexcept
83 {
84 return status == Status::Success;
85 }
86 };
87
88 HumanResult queryHumans(const Query& query) const;
89 HumanGroupResult queryHumanGroups(const Query& query) const;
90
91 protected:
94
95 std::string propertyPrefix() const override;
96 Properties defaultProperties() const override;
97 };
98
99} // namespace armarx::navigation::memory::client::human
The query::Builder class provides a fluent-style specification of hierarchical queries.
Definition Builder.h:22
Represents a duration.
Definition Duration.h:17
Properties defaultProperties() const override
Definition Reader.cpp:66
std::string propertyPrefix() const override
Definition Reader.cpp:60
HumanGroupResult queryHumanGroups(const Query &query) const
Definition Reader.cpp:157
HumanResult queryHumans(const Query &query) const
Definition Reader.cpp:209
::armarx::armem::client::query::Builder buildHumansQuery(const Query &query) const
Definition Reader.cpp:28
::armarx::armem::client::query::Builder buildHumanGroupsQuery(const Query &query) const
Definition Reader.cpp:44
armarx::core::time::DateTime Time
std::vector< Human > Humans
Definition types.h:48
std::vector< HumanGroup > HumanGroups
Definition types.h:60
enum armarx::navigation::memory::client::human::Reader::HumanGroupResult::Status status
enum armarx::navigation::memory::client::human::Reader::HumanResult::Status status