X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/31ec4d4de2e362f66015fd28fcfd2b3ef4c3542f..59b7476481f01388fcfd13492adbba7ef841755c:/src/clave_variable.h?ds=sidebyside diff --git a/src/clave_variable.h b/src/clave_variable.h index 75cecfd..b92448b 100644 --- a/src/clave_variable.h +++ b/src/clave_variable.h @@ -8,25 +8,31 @@ /** Representa una clave de longitud variable. * - * \TODO Usar abreviaciones + * \todo Usar abreviaciones */ class ClaveVariable : public Clave { public : ClaveVariable (uchar *n); - ClaveVariable (const std::string &s); + ClaveVariable (const std::string &s, uint bd); virtual ~ClaveVariable () {} uint Size () const; uchar *ToArray () const; + uchar *ToRaw (uint &size) const; Clave *Clone () const; + bool Abrev (ClaveVariable *c); + bool DesAbrev (ClaveVariable *c); + virtual bool operator < (const Clave &c) const; virtual bool operator == (const Clave &c) const; virtual operator std::string () const { return data; } private: + std::string abreviar(std::string &primera, std::string &actual, int &iguales); std::string data; + std::string raw_data; }; #endif