]> git.llucax.com Git - z.facultad/75.42/plaqui.git/commitdiff
Se agrega sobrecarga de add_arg(unsigned) a pedido de ricky :)
authorLeandro Lucarella <llucax@gmail.com>
Mon, 17 Nov 2003 04:31:53 +0000 (04:31 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Mon, 17 Nov 2003 04:31:53 +0000 (04:31 +0000)
Server/include/plaqui/server/command.h
Server/src/command.cpp

index ac43f473faa32fcbdb528d765d4232ed2a9746c5..cd49d43dbe3fbf2e28d7181e2697ea4e97baa1ba 100644 (file)
@@ -114,10 +114,15 @@ namespace Server {
                        const Arguments& get_args(void) const;
 
                        /**
-                        * Agrega un argumentos.
+                        * Agrega un argumento.
                         */
                        void add_arg(const std::string& arg);
 
+                       /**
+                        * Agrega un argumento.
+                        */
+                       void add_arg(const unsigned& arg);
+
                        /**
                         * Obtiene el comando desde un pedido HTTP completo.
                         */
index 08a73c9b36ae4a9bd5cb18bec05325d667acd2ff..f0e3ef1f2b0fec91ffc9afd15745c8139cba29a2 100644 (file)
@@ -92,6 +92,11 @@ void Command::add_arg(const std::string& arg) {
        build();
 }
 
+void Command::add_arg(const unsigned& arg) {
+       args.push_back(String().from(arg));
+       build();
+}
+
 istream& operator>>(istream& is, Command& command) {
 #ifdef DEBUG
        cerr << __FILE__ << ": operator>>()" << endl;