]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/include/plaqui/server/command.h
Se agrega sobrecarga de add_arg(unsigned) a pedido de ricky :)
[z.facultad/75.42/plaqui.git] / Server / include / plaqui / server / command.h
index 019cad2e20c6ae5ae316a421ae0a76f9ee7e53bb..cd49d43dbe3fbf2e28d7181e2697ea4e97baa1ba 100644 (file)
@@ -80,8 +80,8 @@ namespace Server {
                        /**
                         * Constructor.
                         */
-                       Command(const std::string& target = "",
-                                       const std::string& command = "");
+                       Command(const std::string& _target = "",
+                                       const std::string& _command = "");
 
                        /**
                         * Establece el destino.
@@ -91,7 +91,7 @@ namespace Server {
                        /**
                         * Obtiene el destino.
                         */
-                       const std::string& get_target(void);
+                       const std::string& get_target(void) const;
 
                        /**
                         * Establece el comando.
@@ -101,7 +101,7 @@ namespace Server {
                        /**
                         * Obtiene el comand.
                         */
-                       const std::string& get_command(void);
+                       const std::string& get_command(void) const;
 
                        /**
                         * Establece los argumentos.
@@ -111,13 +111,18 @@ namespace Server {
                        /**
                         * Obtiene los argumentos.
                         */
-                       const Arguments& get_args(void);
+                       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.
                         */