#ifndef __DATAAREA_H_
#define __DATAAREA_H_

#define _TAMANHO_INT	2
#define _TAMANHO_NOME	10
#define _TAMANHO_LINHA	20

#include <afx.h>

#include "Object.h"


class DataArea : public Object
{
public:
	DataArea();
	DataArea( CString numero, CString nome, double salario );
    DataArea( CString linha );
        
    CString getNumero()
    {
    	return numero;
    }
    
    CString getNome()
    {
    	return nome;
    }
    
    double getSalario()
    {
    	return salario;
    }
    
	void setNumero( CString numero )
    {
    	this->numero = numero;
    }
    
    void setNome( CString nome )
    {
    	this->nome = nome;
    }
    
    void setSalario( double salario )
    {
    	this->salario = salario;
    }
    
    void imprime();

    void gravaArquivo( FILE * );
   
	HashValue Hash () const;
    void Put (ostream&) const;

protected:

	int CompareTo (const Object & object) const;

private:
	
	CString numero;
    CString nome;
    double salario;
};

#endif  
