]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/include/plaqui/server/transmitter.h
- Se agrega una planta de prueba (usando Simulator).
[z.facultad/75.42/plaqui.git] / Server / include / plaqui / server / transmitter.h
index faff2ef0b79d39cd6237f6d785059328549c345c..87b0bd21346b92aa6373b483e51646e97a5ecd72 100644 (file)
 #define PLAQUI_TRANSMITTER_H
 
 #include "plaqui/server/connection.h"
+//#include "plaqui/server/plant.h"
 #include <string>
 
-namespace Plaqui {
+namespace PlaQui {
+
+namespace Server {
 
        /// Conexión para transmitir el estado de una planta.
        class Transmitter: public Connection {
 
+               // Métodos.
+
                private:
 
                        /**
@@ -48,7 +53,7 @@ namespace Plaqui {
                        /**
                         * Destructor.
                         */
-                       virtual ~Transmitter(void) {}
+                       virtual ~Transmitter(void);
 
                        /**
                         * Constructor.
@@ -56,10 +61,18 @@ namespace Plaqui {
                         * \param host Host al cual transmitir.
                         * \param port Puerto al cual transmitir.
                         */
-                       Transmitter(std::string host = "localhost", int port = 7528);
+                       Transmitter(const std::string& _host = "localhost",
+                                       const Connection::Port& _port = 7528);
+
+                       /**
+                        * Envia datos.
+                        */
+                       void send(const std::string& data);
 
        };
 
 }
 
+}
+
 #endif // PLAQUI_TRANSMITTER_H