X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FParsedSource.h;fp=src%2Floader%2FParsedSource.h;h=e33796aa8601c0560b476972163dd47ec3581863;hb=2bd2e92a227af66386af1dfca2f52df6941f0f94;hp=d5347e55c201d5e02a9492369acdc519ec6740cc;hpb=5d6b785e122093fe05e2ed14f688a8bce6bad6a9;p=l2e.git diff --git a/src/loader/ParsedSource.h b/src/loader/ParsedSource.h index d5347e5..e33796a 100644 --- a/src/loader/ParsedSource.h +++ b/src/loader/ParsedSource.h @@ -80,6 +80,11 @@ public: explicit Value(Literal *literal) : literal(literal), isLiteral(false) { } +public: + bool IsLiteral() const { return isLiteral; } + const Literal &GetLiteral() const; + const std::string &GetIdentifier() const; + private: Literal *literal; std::string identifier; @@ -98,6 +103,13 @@ public: props[name] = value; } + typedef std::map::iterator Iterator; + typedef std::map::const_iterator ConstIterator; + Iterator Begin() { return props.begin(); } + ConstIterator Begin() const { return props.begin(); } + Iterator End() { return props.end(); } + ConstIterator End() const { return props.end(); } + private: std::map props;