Templates -- Meow  1.2.11
A C++ template contains kinds of interesting classes and functions
BitmapDescript.h
Go to the documentation of this file.
1 #ifndef BitmapDescript_H__
2 #define BitmapDescript_H__
3 
4 #include "../Self.h"
5 
6 #include "../oo/ObjBase.h"
7 
8 
9 
11 private:
12  struct Myself {
13  double ratioL_;
14  size_t wSize_;
15  size_t cNumber_;
16  };
17  Self<Myself const> self;
18 public:
20  }
21 
23  }
24 
25 
26  bool write(FILE* f, bool bin, unsigned int fg) const {
27  return false;
28  }
29 
30  bool read(FILE* f, bool bin, unsigned int fg) {
31  return false;
32  }
33 
34  ObjBase* create() const {
35  return new FeaturePointDescript();
36  }
37 
38  ObjBase* copyFrom(ObjBase const& b) {
39  return &(copyFrom(*(FeaturePointDescript const*)b));
40  }
41 
42  char const* ctype() const {
43  return typeid(*this).name();
44  }
45 
46  std::string type() const {
47  return std::string(ctype());
48  }
49 };
50 
51 #endif // BitmapDescript_H__
char const * ctype() const
ObjBase * copyFrom(ObjBase const &b)
bool read(FILE *f, bool bin, unsigned int fg)
ObjBase * create() const
bool write(FILE *f, bool bin, unsigned int fg) const
std::string type() const