Added the comment tag/

This commit is contained in:
Brad Arant 2024-07-08 16:21:24 -07:00
parent 8443495675
commit d8a6638741
3 changed files with 32 additions and 0 deletions

View File

@ -8,3 +8,6 @@ modifications. Data contained within the tags may modify their
containers before placing any output. The space taken by the tag
itself is not passwed to the output and will not appear in the output.
Skip Blank Lines options on containers will skip passing any blank
lines or line containing only whitespace to the output.

12
__comment.cpp Normal file
View File

@ -0,0 +1,12 @@
#include "__cpmment.h"
#include "Exception.h"
namespace jet {
__comment::__comment(coreutils::ZString &in, coreutils::MString &out, Global &global) : Tag(in, out, global) {
if(!hasContainer)
throw coreutils::Exception("comment must have a container.");
output = false;
}
}

17
__comment.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef ____comment_h__
#define ____comment_h__
#include "Tag.h"
namespace jet {
class __comment : public Tag {
public:
__comment(coreutils::ZString &in, coreutils::MString &out, Global &global);
};
}
#endif