+ virtual uint Size () const;
+ virtual uchar *ToArray () const;
+ virtual operator std::string () const {
+ if (clave) {
+ return (*clave);
+ }
+ return "NoKey";
+ }
+};
+
+class BTreeChildData:public BTreeData {
+ public:
+ BTreeChildData (uint child):BTreeData () { hijo = child; clave = NULL; }
+ BTreeChildData (uchar *node);
+ virtual ~BTreeChildData ();
+
+ virtual uint Size () const;
+ virtual uchar *ToArray () const;
+ virtual operator std::string () const {
+ std::string out;
+ std::stringstream ss;
+ ss << "|" << hijo << "|";
+ ss >> out;
+ return out;
+ }