summaryrefslogtreecommitdiffstats
path: root/2022-2/L08/mitsuo/LAB08_PREG01/ConReceta.h
blob: f91eb83b40beac2b3066965422f32e031eb2c7ca (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:   ConReceta.h
 * Author: mitsuo
 *
 * Created on 27 November 2022, 11:51
 */

#ifndef CONRECETA_H
#define CONRECETA_H

#include <iostream>
#include "Medicamento.h"

class ConReceta : public Medicamento {
public:
    ConReceta();
    ConReceta(const ConReceta& orig);
    virtual ~ConReceta();
    void SetEspecialidad(const char* especialidad);
    char* GetEspecialidad() const;
    void SetCodmed(int codmed);
    int GetCodmed() const;
    void write(std::ostream &);
private:
    int codmed;         // medicoId
    char *especialidad; // medicoEsp
};

#endif /* CONRECETA_H */