MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / CommandComment

Class CommandComment

src/common/cmdargparser.hpp:609–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607 };
608
609 struct CommandComment
610 {
611 CommandComment(const CommentPlacement &p, const std::string &c)
612 : placement(p), comment(c)
613 {
614 }
615
616 const std::string GetComment(const CommentPlacement &p) const
617 {
618 return (p == placement ? comment + "\n" : "");
619 }
620
621 const CommentPlacement placement;
622 const std::string comment;
623 };
624 using CmdComments = std::vector<CommandComment>;
625
626

Callers 1

AddCommentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected