Added the comment tag/
This commit is contained in:
parent
8443495675
commit
d8a6638741
@ -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
12
__comment.cpp
Normal 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
17
__comment.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user