summaryrefslogtreecommitdiffstats
path: root/2022-2/L08/mitsuo/LAB08_PREG01/Medico.h
blob: 21eb50e573ff5689df9ab8470750f4a6957384b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* 
 * File:   Medico.h
 * Author: mitsuo
 *
 * Created on 27 November 2022, 11:46
 */

#ifndef MEDICO_H
#define MEDICO_H

#include <iostream>

class Medico {
public:
    Medico();
    Medico(const Medico& orig);
    virtual ~Medico();
    char* getEspecialidad() const;
    int getCodigo() const;
    
    int read(std::istream & input);
    void write(std::ostream & output);
private:
    int codigo;
    char *nombre;
    char *especialidad;
};

#endif /* MEDICO_H */