comparison lib/irccd/server-state.hpp @ 207:6635b9187d71

Irccd: switch to 4 spaces indent, #518
author David Demelier <markand@malikania.fr>
date Tue, 21 Jun 2016 20:52:17 +0200
parents b0909b31eccb
children 01fc0e526a9d
comparison
equal deleted inserted replaced
206:11808e98218f 207:6635b9187d71
47 * \class ServerState 47 * \class ServerState
48 * \brief Server current state. 48 * \brief Server current state.
49 */ 49 */
50 class ServerState { 50 class ServerState {
51 public: 51 public:
52 /** 52 /**
53 * Default constructor. 53 * Default constructor.
54 */ 54 */
55 ServerState() = default; 55 ServerState() = default;
56 56
57 /** 57 /**
58 * Virtual default destructor. 58 * Virtual default destructor.
59 */ 59 */
60 virtual ~ServerState() = default; 60 virtual ~ServerState() = default;
61 61
62 /** 62 /**
63 * Prepare the state. 63 * Prepare the state.
64 * 64 *
65 * \param server the server 65 * \param server the server
66 * \param setinput the read set 66 * \param setinput the read set
67 * \param setoutput the write set 67 * \param setoutput the write set
68 * \param maxfd the maximum fd 68 * \param maxfd the maximum fd
69 */ 69 */
70 virtual void prepare(Server &server, fd_set &setinput, fd_set &setoutput, net::Handle &maxfd) = 0; 70 virtual void prepare(Server &server, fd_set &setinput, fd_set &setoutput, net::Handle &maxfd) = 0;
71 71
72 /** 72 /**
73 * Return the state identifier, only for information purposes. 73 * Return the state identifier, only for information purposes.
74 * 74 *
75 * \return the identifier 75 * \return the identifier
76 */ 76 */
77 virtual std::string ident() const = 0; 77 virtual std::string ident() const = 0;
78 }; 78 };
79 79
80 } // !irccd 80 } // !irccd
81 81
82 #endif // !IRCCD_SERVER_STATE_HPP 82 #endif // !IRCCD_SERVER_STATE_HPP