added getters of single fields
This commit is contained in:
parent
84394a0701
commit
ec18992ba6
38
lib/CNS.cpp
38
lib/CNS.cpp
|
@ -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;
|
||||
}
|
||||
|
|
10
lib/CNS.h
10
lib/CNS.h
|
@ -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();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue