21 #include <unity/scopes/Variant.h> 22 #include <unity/util/DefinesPtrs.h> 64 static Department::UPtr create(
CannedQuery const& query, std::string
const& label);
77 static Department::UPtr create(std::string
const& department_id,
CannedQuery const& query, std::string
const& label);
97 void set_subdepartments(DepartmentList
const& departments);
103 void add_subdepartment(Department::SCPtr
const& department);
113 void set_alternate_label(std::string
const& label);
125 void set_has_subdepartments(
bool subdepartments =
true);
131 std::string id()
const;
137 std::string label()
const;
148 std::string alternate_label()
const;
160 DepartmentList subdepartments()
const;
166 bool has_subdepartments()
const;
174 std::unique_ptr<internal::DepartmentImpl> p;
175 friend class internal::DepartmentImpl;
std::list< std::shared_ptr< Department const > > DepartmentList
List of departments (see unity::scopes::Department)
Definition: Department.h:44
Top-level namespace for all things Unity-related.
Definition: Version.h:49
std::map< std::string, Variant > VariantMap
A dictionary of (string, Variant) pairs.
Definition: Variant.h:38
Definition: ActionMetadata.h:31
A department with optional sub-departments.
Definition: Department.h:49
Parameters of a search query.
Definition: CannedQuery.h:49