added getters of single fields

This commit is contained in:
giomba 2020-07-16 23:41:52 +02:00
parent 84394a0701
commit ec18992ba6
2 changed files with 47 additions and 1 deletions

View File

@ -51,4 +51,40 @@ QTextStream& operator<< (QTextStream& os, const CNS& cns) {
os << "Sesso:\t" << ((cns.sesso == F) ? 'F' : 'M') << endl;
return os;
}
}
QString CNS::getNome() {
return this->nome;
}
QString CNS::getCognome() {
return this->cognome;
}
QDate CNS::getDataNascita() {
return this->dataNascita;
}
QString CNS::getComuneNascita() {
return this->comuneNascita;
}
QString CNS::getComuneResidenza() {
return this->comuneResidenza;
}
QString CNS::getCodiceFiscale() {
return this->codiceFiscale;
}
Sex CNS::getSesso() {
return this->sesso;
}
QDate CNS::getDataRilascio() {
return this->dataRilascio;
}
QDate CNS::getDataScadenza() {
return this->dataScadenza;
}

View File

@ -63,6 +63,16 @@ class CNSPARSER_EXPORT CNS {
public:
void fromSmartCard(void);
friend QTextStream& operator<<(QTextStream& os, const CNS& cns);
QString getNome();
QString getCognome();
QDate getDataNascita();
QString getComuneNascita();
QString getComuneResidenza();
QString getCodiceFiscale();
Sex getSesso();
QDate getDataRilascio();
QDate getDataScadenza();
};