1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef CPLNETWORKS_HEADER
- #define CPLNETWORKS_HEADER
- #include "../classes/stdafx.hpp"
- #include "../classes/CPLChannel.hpp"
- #include "../classes/CPLNetwork.hpp"
- class __declspec (dllexport) CPLNetworks
- {
- public:
- explicit CPLNetworks (char const * ifname, unsigned timeout);
- virtual ~ CPLNetworks ();
- bool Empty (void) const;
- bool End (void) const;
- unsigned Count (void) const;
- unsigned Index (void) const;
- CPLNetworks & Select (unsigned);
- CPLNetworks & SelectPrev (void);
- CPLNetworks & SelectNext (void);
- CPLNetworks & SelectFirst (void);
- CPLNetworks & SelectFinal (void);
- CPLNetworks & Enumerate (void);
- CPLNetworks & operator = (unsigned);
- CPLNetwork & Selected (void) const;
- CPLNetwork & Network (void) const;
- CPLNetwork & operator [] (unsigned);
- private:
- CPLNetwork ** mtable;
- unsigned mcount;
- unsigned mindex;
- };
- #endif
|