summaryrefslogtreecommitdiffstats
path: root/src/HTTPServer/NameValueParser.h
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2015-07-31 19:26:33 +0200
committerJulian Laubstein <julianlaubstein@yahoo.de>2015-07-31 19:26:33 +0200
commitd19cde93fa3344f318fb0d4ffbf5bb0397a51a75 (patch)
treeb5ee221d8a8e63c7d3b7868da1db19bf717a6ffd /src/HTTPServer/NameValueParser.h
parentMerge pull request #2400 from cuberite/OffloadBadChunks (diff)
parentUnified the doxy-comment format. (diff)
downloadcuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.gz
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.bz2
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.lz
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.xz
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.zst
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.zip
Diffstat (limited to 'src/HTTPServer/NameValueParser.h')
-rw-r--r--src/HTTPServer/NameValueParser.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/HTTPServer/NameValueParser.h b/src/HTTPServer/NameValueParser.h
index 9794614fa..c0643b139 100644
--- a/src/HTTPServer/NameValueParser.h
+++ b/src/HTTPServer/NameValueParser.h
@@ -17,22 +17,22 @@ class cNameValueParser :
public std::map<AString, AString>
{
public:
- /// Creates an empty parser
+ /** Creates an empty parser */
cNameValueParser(bool a_AllowsKeyOnly = true);
- /// Creates an empty parser, then parses the data given. Doesn't call Finish(), so more data can be parsed later
+ /** Creates an empty parser, then parses the data given. Doesn't call Finish(), so more data can be parsed later */
cNameValueParser(const char * a_Data, size_t a_Size, bool a_AllowsKeyOnly = true);
- /// Parses the data given
+ /** Parses the data given */
void Parse(const char * a_Data, size_t a_Size);
- /// Notifies the parser that no more data will be coming. Returns true if the parser state is valid
+ /** Notifies the parser that no more data will be coming. Returns true if the parser state is valid */
bool Finish(void);
- /// Returns true if the data parsed so far was valid
+ /** Returns true if the data parsed so far was valid */
bool IsValid(void) const { return (m_State != psInvalid); }
- /// Returns true if the parser expects no more data
+ /** Returns true if the parser expects no more data */
bool IsFinished(void) const { return ((m_State == psInvalid) || (m_State == psFinished)); }
protected:
@@ -50,16 +50,16 @@ protected:
psFinished, ///< The parser has already been instructed to finish and doesn't expect any more data
} ;
- /// The current state of the parser
+ /** The current state of the parser */
eState m_State;
- /// If true, the parser will accept keys without an equal sign and the value
+ /** If true, the parser will accept keys without an equal sign and the value */
bool m_AllowsKeyOnly;
- /// Buffer for the current Key
+ /** Buffer for the current Key */
AString m_CurrentKey;
- /// Buffer for the current Value;
+ /** Buffer for the current Value; */
AString m_CurrentValue;