123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef _cmDocumentationSection_h
- #define _cmDocumentationSection_h
- #include "cmConfigure.h"
- #include "cmDocumentationEntry.h"
- #include <string>
- #include <vector>
- class cmDocumentationSection
- {
- public:
-
- cmDocumentationSection(const char* name, const char*)
- : Name(name)
- {
- }
-
- bool IsEmpty() const { return this->Entries.empty(); }
-
- void Clear() { this->Entries.clear(); }
-
- std::string GetName() const { return this->Name; }
-
- const std::vector<cmDocumentationEntry>& GetEntries() const
- {
- return this->Entries;
- }
-
- void Append(const cmDocumentationEntry& entry)
- {
- this->Entries.push_back(entry);
- }
- void Append(const std::vector<cmDocumentationEntry>& entries)
- {
- this->Entries.insert(this->Entries.end(), entries.begin(), entries.end());
- }
-
- void Append(const char* [][2]);
- void Append(const char* n, const char* b);
-
- void Prepend(const char* [][2]);
- void Prepend(const std::vector<cmDocumentationEntry>& entries)
- {
- this->Entries.insert(this->Entries.begin(), entries.begin(),
- entries.end());
- }
- private:
- std::string Name;
- std::vector<cmDocumentationEntry> Entries;
- };
- #endif
|