本文整理汇总了C++中Annotation::GetComment方法的典型用法代码示例。如果您正苦于以下问题:C++ Annotation::GetComment方法的具体用法?C++ Annotation::GetComment怎么用?C++ Annotation::GetComment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Annotation
的用法示例。
在下文中一共展示了Annotation::GetComment方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: isValid
bool ModelValidator::isValid(const Annotation& annotation, bool allowDefaults/* = false*/)
{
RETURN_IF_STR_EMPTY(annotation.GetAimVersion(), "AIM Version");
RETURN_IF_STR_EMPTY(annotation.GetName(), "Annotation Name");
RETURN_IF_UID_NOT_VALID(annotation.GetUniqueIdentifier(), "Annotation Unique Identifier");
RETURN_IF_NOT_VALID1(annotation.GetDateTime(), false, "Annotation DateTime is invalid");
RETURN_IF_STR_EMPTY(annotation.GetCodeValue(), "Annotation Code Value");
RETURN_IF_STR_EMPTY(annotation.GetCodeMeaning(), "Annotation Code Meaning");
RETURN_IF_STR_EMPTY(annotation.GetCodingSchemeDesignator(), "Annotation Coding Scheme Designator");
if (!allowDefaults)
{
RETURN_IF_STR_EMPTY(annotation.GetCodingSchemeVersion(), "Annotation Coding Scheme Version");
RETURN_IF_STR_EMPTY(annotation.GetComment(), "Annotation Comment");
RETURN_IF_UID_NOT_VALID(annotation.GetPrecedentReferencedAnnotationUID(), "Precedent Referenced Annotation UID");
}
if (annotation.GetEquipment() != NULL)
RETURN_IF_NOT_VALID1(*annotation.GetEquipment(), allowDefaults, "Equipment is invalid");
if (annotation.GetUser() != NULL)
RETURN_IF_NOT_VALID1(*annotation.GetUser(), allowDefaults, "User is invalid");
if (annotation.GetAimStatus() != NULL)
RETURN_IF_NOT_VALID1(*annotation.GetAimStatus(), allowDefaults, "AimStatus is invalid");
for (CalculationVector::const_iterator iter = annotation.GetCalculationCollection().begin(); iter < annotation.GetCalculationCollection().end(); iter++)
RETURN_IF_NOT_VALID1(*iter, allowDefaults, "Calculation is invalid");
for (AnatomicEntityVector::const_iterator iter = annotation.GetAnatomicEntityCollection().begin(); iter < annotation.GetAnatomicEntityCollection().end(); iter++)
RETURN_IF_NOT_VALID1(*iter, allowDefaults, "Anatomic Entity is invalid");
for (ImagingObservationVector::const_iterator iter = annotation.GetImagingObservationCollection().begin(); iter < annotation.GetImagingObservationCollection().end(); iter++)
RETURN_IF_NOT_VALID1(*iter, allowDefaults, "Imaging Observation is invalid");
return true;
}