19 #ifndef UNITY_SCOPES_DEPARTMENT_H
20 #define UNITY_SCOPES_DEPARTMENT_H
22 #include <unity/scopes/Variant.h>
23 #include <unity/util/DefinesPtrs.h>
137 std::string
id()
const;
143 std::string
label()
const;
179 std::unique_ptr<internal::DepartmentImpl> p;
std::string label() const
Get the label of this department.
Definition: Department.cpp:92
void set_subdepartments(DepartmentList const &departments)
Set sub-departments of this department.
Definition: Department.cpp:77
std::string alternate_label() const
Get the alternate label of this department.
Definition: Department.cpp:97
void set_has_subdepartments()
Sets has_subdepartments flag of this department to true.
Definition: Department.cpp:72
std::string id() const
Get the identifier of this department.
Definition: Department.cpp:87
std::list< Department > DepartmentList
List of departments (see unity::scopes::Department)
Definition: Department.h:40
bool has_subdepartments() const
Check if this department has subdepartments or has_subdepartments flag is set.
Definition: Department.cpp:107
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:102
DepartmentList subdepartments() const
Get list of sub-departments of this department.
Definition: Department.cpp:112
Department(CannedQuery const &query, std::string const &label)
Create a department with the given canned query and name.
Definition: Department.cpp:29
void set_alternate_label(std::string const &label)
Set the alternate label (plural of the normal label) of this department.
Definition: Department.cpp:82