本文整理汇总了C++中Patient::setAdmissionDate方法的典型用法代码示例。如果您正苦于以下问题:C++ Patient::setAdmissionDate方法的具体用法?C++ Patient::setAdmissionDate怎么用?C++ Patient::setAdmissionDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Patient
的用法示例。
在下文中一共展示了Patient::setAdmissionDate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: parseFacility
/**
* Helper function to loadModel
*
* @param afacility that will contain patients parsed in this step
*
* @param n is an xml node of the first patient in the facility
*
*/
void StorageHandler::parseFacility(Facility* aFacility, QDomNode* n){
QDomElement e;
QDomNode node;
while( !n->isNull() )
{
e = n->toElement();
QString healthCardNumber = e.attribute( "healthCardNumber", "1111111111" );
QString firstName = e.attribute( "firstName", "noFirstName" );
QString lastName = e.attribute( "lastName", "noLastName" );
int reqCare = e.attribute("reqCare", "0").toInt();
int occCare = e.attribute("occCare", "0").toInt();
QDate dateAdmitted = Convenience::fromXML(e.attribute("dateAdded", "2000-02-02"));
Logger::infoMessage("storageHandler","parseWaitingList", "Patient added to a facility pName= ", firstName);
Patient* p = new Patient(healthCardNumber, firstName, lastName, Convenience::intToCareType(reqCare));
p->setAdmissionDate(dateAdmitted);
aFacility->addPatientToBed(p, Convenience::intToCareType(occCare));
node = e.nextSibling();
n = &(node);
}
}