diff options
Diffstat (limited to 'Swiften/Parser/Tree/NullParserElement.h')
-rw-r--r-- | Swiften/Parser/Tree/NullParserElement.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Swiften/Parser/Tree/NullParserElement.h b/Swiften/Parser/Tree/NullParserElement.h new file mode 100644 index 0000000..8dd9bc1 --- /dev/null +++ b/Swiften/Parser/Tree/NullParserElement.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2011 Kevin Smith + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <string> +#include <Swiften/Parser/Tree/ParserElement.h> + +namespace Swift { + class NullParserElement : public ParserElement { + public: + NullParserElement() : ParserElement("", "", AttributeMap()) {} + + virtual operator bool() { return false; } + + static boost::shared_ptr<NullParserElement> element; + }; +} |