MCPcopy Create free account
hub / github.com/Icinga/icinga2 / CommentTypeToString

Method CommentTypeToString

lib/icingadb/icingadb-utility.cpp:309–317  ·  view source on GitHub ↗

* Converts the given comment type to its string representation. * * @ingroup icinga */

Source from the content-addressed store, hash-verified

307 * @ingroup icinga
308 */
309String IcingaDB::CommentTypeToString(CommentType type)
310{
311 switch (type) {
312 case CommentUser: return "comment";
313 case CommentAcknowledgement: return "ack";
314 default:
315 BOOST_THROW_EXCEPTION(std::invalid_argument("Invalid comment type specified"));
316 }
317}
318
319static const std::set<String> propertiesBlacklistEmpty;
320

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected