diff options
author | Vincent Richard <[email protected]> | 2004-12-15 20:28:09 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2004-12-15 20:28:09 +0000 |
commit | 50a6a9cdfacfa4e1aaa5a35fe8c3bc6ac114fa57 (patch) | |
tree | f18d5df3baa88b63360155b1f53653dcc9630165 /src/component.hpp | |
parent | Working on 'maildir' implementation. (diff) | |
download | vmime-50a6a9cdfacfa4e1aaa5a35fe8c3bc6ac114fa57.tar.gz vmime-50a6a9cdfacfa4e1aaa5a35fe8c3bc6ac114fa57.zip |
Added parsing bounds on 'component'.
Diffstat (limited to 'src/component.hpp')
-rw-r--r-- | src/component.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/component.hpp b/src/component.hpp index adb8825c..b09d78bf 100644 --- a/src/component.hpp +++ b/src/component.hpp @@ -36,6 +36,7 @@ class component { public: + component(); virtual ~component(); /** Parse RFC-822/MIME data for this component. @@ -86,6 +87,31 @@ public: * @param other other component to copy data from */ virtual void copyFrom(const component& other) = 0; + + /** Return the start position of this component in the + * parsed message contents. + * + * @return start position in parsed buffer + * or 0 if this component has not been parsed + */ + const string::size_type getParsedOffset() const; + + /** Return the length of this component in the + * parsed message contents. + * + * @return length of the component in parsed buffer + * or 0 if this component has not been parsed + */ + const string::size_type getParsedLength() const; + +protected: + + void setParsedBounds(const string::size_type start, const string::size_type end); + +private: + + string::size_type m_parsedOffset; + string::size_type m_parsedLength; }; |