levur

ip.h

Aug 29th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #ifndef IP_H
  2. #define IP_H
  3. #include "octet.h"
  4. #include <string>
  5.  
  6.  
  7. class IP
  8. {
  9. public:
  10. IP(Octet a1, Octet a2, Octet a3, Octet a4);
  11. virtual ~IP();
  12. std::string ToBits();
  13. int getOct1();
  14. int getOct2();
  15. int getOct3();
  16. int getOct4();
  17.  
  18. private:
  19. Octet partie1;
  20. Octet partie2;
  21. Octet partie3;
  22. Octet partie4;
  23. };
  24.  
  25. #endif // IP_H
Advertisement
Add Comment
Please, Sign In to add comment