]> git.tdb.fi Git - libs/core.git/blobdiff - source/serial.h
Move class members and comments around
[libs/core.git] / source / serial.h
index fd34cdef2069df6dc7d2f568d5bd47c5bb51c61b..069789c85097a69e8510d347ca43a02630009a2a 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspio
-Copyright © 2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_IO_SERIAL_H_
 #define MSP_IO_SERIAL_H_
 
@@ -30,6 +23,10 @@ public:
        Serial(const std::string &);
        virtual ~Serial();
 
+private:
+       void close();
+
+public:
        virtual void set_block(bool);
 
        void set_baud_rate(unsigned);
@@ -38,12 +35,12 @@ public:
        void set_stop_bits(unsigned);
        void set_parameters(const std::string &);
 
-       virtual Handle get_event_handle();
-
 private:
-       void close();
        virtual unsigned do_write(const char *, unsigned);
        virtual unsigned do_read(char *, unsigned);
+
+public:
+       virtual Handle get_event_handle();
 };
 
 } // namespace IO