Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. template <typename CMD>
  2. class Version
  3. {
  4. public:
  5. Version(ByteVector &byteVector) : byteVector(byteVector) {};
  6.  
  7. Object<DATA<CMD>> cls_DATA();
  8. Object<USR<CMD>> cls_USR();
  9. Object<AUTH<CMD>> cls_AUTH();
  10. Object<CONN<CMD>> cls_CONN();
  11. private:
  12. ByteVector &byteVector;
  13. };
  14.  
  15. template<typename CMD>
  16. inline Object<AUTH<CMD>> Version<CMD>::cls_AUTH()
  17. {
  18. return Object<AUTH<CMD>>(byteVector);
  19. }
  20.  
  21. template <>
  22. class Version<AOPEN>
  23. {
  24. public:
  25. Version(ByteVector &byteVector) : byteVector(byteVector) {};
  26.  
  27. Object<AUTH<AOPEN>> cls_AUTH();
  28. private:
  29. ByteVector &byteVector;
  30. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement