* Converts the given comment type to its string representation. * * @ingroup icinga */
| 307 | * @ingroup icinga |
| 308 | */ |
| 309 | String 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 | |
| 319 | static const std::set<String> propertiesBlacklistEmpty; |
| 320 |
nothing calls this directly
no outgoing calls
no test coverage detected