Documentation: documenting the parsing function.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sat, 25 Feb 2012 16:07:06 +0000 (14:07 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sat, 25 Feb 2012 16:07:06 +0000 (14:07 -0200)
src/host/pingprotocol.cpp

index 9522045..038da96 100644 (file)
@@ -29,6 +29,13 @@ using namespace std;
 
 static map<string, PingProtocol> protocol_string_map;
 
+/**
+ * @brief Transform the @a protocol_string into a @c PingProtocol.
+ *
+ * @param protocol_string The string to be parsed.
+ *
+ * @return The @c PingProtocol corresponding to the @a protocol_string.
+ */
 PingProtocol get_ping_protocol_from_string( const string & protocol_string )
 {
     BOOST_ASSERT( !protocol_string.empty() );