]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/include/plaqui/server/command.h
Se arregla un bug y se ponen caudales > 0 en el ejemplo :)
[z.facultad/75.42/plaqui.git] / Server / include / plaqui / server / command.h
index ac43f473faa32fcbdb528d765d4232ed2a9746c5..00745573be6309ea6102143d6b495af1fbf6eb64 100644 (file)
@@ -28,7 +28,9 @@
 #ifndef PLAQUI_COMMAND_H
 #define PLAQUI_COMMAND_H
 
 #ifndef PLAQUI_COMMAND_H
 #define PLAQUI_COMMAND_H
 
+#include "httperror.h"
 #include "httprequest.h"
 #include "httprequest.h"
+#include <socket++/sockstream.h>
 #include <string>
 #include <vector>
 #include <istream>
 #include <string>
 #include <vector>
 #include <istream>
@@ -114,21 +116,26 @@ namespace Server {
                        const Arguments& get_args(void) const;
 
                        /**
                        const Arguments& get_args(void) const;
 
                        /**
-                        * Agrega un argumentos.
+                        * Agrega un argumento.
                         */
                        void add_arg(const std::string& arg);
 
                         */
                        void add_arg(const std::string& arg);
 
+                       /**
+                        * Agrega un argumento.
+                        */
+                       void add_arg(const unsigned& arg);
+
                        /**
                         * Obtiene el comando desde un pedido HTTP completo.
                         */
                        friend std::istream& operator>>(std::istream& is,
                        /**
                         * Obtiene el comando desde un pedido HTTP completo.
                         */
                        friend std::istream& operator>>(std::istream& is,
-                                       Command& command);
+                                       Command& command) throw(HTTPError, sockerr, ios::failure);
 
                        /**
                         * Convierte el comando a un pedido HTTP completo.
                         */
                        friend std::ostream& operator<<(std::ostream& os,
 
                        /**
                         * Convierte el comando a un pedido HTTP completo.
                         */
                        friend std::ostream& operator<<(std::ostream& os,
-                                       const Command& command);
+                                       const Command& command) throw(sockerr);
 
        };
 
 
        };