19 #ifndef UNITY_SCOPES_DEPARTMENT_H
20 #define UNITY_SCOPES_DEPARTMENT_H
22 #include <unity/scopes/Variant.h>
23 #include <unity/util/DefinesPtrs.h>
118 std::string
id()
const;
124 std::string
label()
const;
143 std::unique_ptr<internal::DepartmentImpl> p;
std::string label() const
Get the label of this department.
Definition: Department.cpp:82
void set_subdepartments(DepartmentList const &departments)
Set sub-departments of this department.
Definition: Department.cpp:72
std::string id() const
Get the identifier of this department.
Definition: Department.cpp:77
std::list< Department > DepartmentList
List of departments (see unity::scopes::Department)
Definition: Department.h:40
std::map< std::string, Variant > VariantMap
A dictionary of (string, Variant) pairs.
Definition: Variant.h:39
A department with optional sub-departments.
Definition: Department.h:50
Parameters of a search query.
Definition: CannedQuery.h:46
CannedQuery query() const
Get the canned query associated with this department.
Definition: Department.cpp:87
DepartmentList subdepartments() const
Get list of sub-departments of this department.
Definition: Department.cpp:92
Department(CannedQuery const &query, std::string const &label)
Create a department with the given canned query and name.
Definition: Department.cpp:29