Advertisement
dooly386

class template header

May 14th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.87 KB | None | 0 0
  1. #include <common/c_class.h>
  2. namespace codename6
  3. {
  4.  
  5. class c_difftime : public c_class
  6. {
  7.  
  8. public:
  9.     c_difftime();
  10.     c_difftime(const c_difftime &v);
  11.  
  12.     void Assign(const void *v) override;
  13.     const char *ClassName() const override;
  14.     const void *Clone(uint64_t opt) const override;
  15.     bool Inherited(const char *clsname) const override;
  16.  
  17.     int from_lua(void *LL,int idx) override;
  18.     int to_lua(void *LL) override;
  19.  
  20.  
  21.     uint64_t write(std::ostream &s) const override;
  22.     uint64_t read(std::istream &s) override;
  23.     int on_lua_command_call(const char *cmd,void *LL) override;
  24.  
  25. private:
  26.     using super = c_class;
  27.  
  28.  
  29. public:
  30.     constexpr static int clscode = 774973917;
  31.     int GetCode() const override
  32.     {
  33.         return c_difftime::clscode;
  34.     }
  35.  
  36.     bool Inherited(int code) const override
  37.     {
  38.         if(code==c_difftime::clscode) return true;
  39.         return super::Inherited(code);
  40.     }
  41.  
  42.  
  43. };
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement