#define _CLAVE_FIJA_H_
#include "clave.h"
+#include <string>
+#include <sstream>
-class ClaveFija : Clave {
+class ClaveFija : public Clave {
public :
+ ClaveFija (uchar *n);
+ ClaveFija (int n);
virtual ~ClaveFija () {}
- virtual uint Size ();
- virtual uchar *ToArray ();
+ uint Size () const;
+ uchar *ToArray () const;
+ Clave *Clone () const;
+ virtual bool operator < (const Clave &c) const;
+ virtual bool operator == (const Clave &c) const;
+ virtual operator std::string () const {
+ std::string out;
+ std::stringstream ss;
+ ss << data;
+ ss >> out;
+ return out;
+ }
private:
int data;
};