2 #ifndef _CLAVE_VARIABLE_H_
3 #define _CLAVE_VARIABLE_H_
9 /** Representa una clave de longitud variable.
11 * \todo Usar abreviaciones
13 class ClaveVariable : public Clave {
15 ClaveVariable (uchar *n);
16 ClaveVariable (const std::string &s);
17 virtual ~ClaveVariable () {}
20 uchar *ToArray () const;
21 uchar *ToRaw (uint &size) const;
22 Clave *Clone () const;
24 bool Abrev (ClaveVariable *c);
25 bool DesAbrev (ClaveVariable *c);
27 virtual bool operator < (const Clave &c) const;
28 virtual bool operator == (const Clave &c) const;
29 virtual operator std::string () const {
33 std::string abreviar(std::string &primera, std::string &actual, int &iguales);