42 PersonPtr p1 = PersonPtr(
new Person(
"p1",
"mo"));
43 PersonPtr p2 = PersonPtr(
new Person(
"p2",
"curly"));
44 OrganizationPtr o1 = OrganizationPtr(
new Organization(
"o1",
"three stooges"));
58 PersonPtr p1 = PersonPtr(
new Person(
"p1",
"mo"));
59 PersonPtr p2 = PersonPtr(
new Person(
"p2",
"curly"));
60 OrganizationPtr o1 = OrganizationPtr(
new Organization(
"o1",
"three stooges"));
80 unit_assert(software->contactRolePtr->contactPtr->name ==
"curly");
81 unit_assert(sample->contactRole.front()->contactPtr->name ==
"mo");
82 unit_assert(dynamic_cast<Person*>(sample->contactRole.front()->contactPtr.get()));
83 unit_assert(sample->contactRole.back()->contactPtr->name ==
"three stooges");
84 unit_assert(dynamic_cast<Organization*>(sample->contactRole.back()->contactPtr.get()));
118 PersonPtr peep1(
new Person(
"p1",
"person1"));
119 peep1->affiliations.push_back(OrganizationPtr(
new Organization(
"o1")));
120 PersonPtr peep2(
new Person(
"p2",
"person2"));
121 peep2->affiliations.push_back(OrganizationPtr(
new Organization(
"o2")));
122 peep2->affiliations.push_back(OrganizationPtr(
new Organization(
"O")));
124 OrganizationPtr mail_organ(
new Organization(
"o1",
"organ1"));
125 OrganizationPtr feemail_organ(
new Organization(
"o2",
"organ2"));
126 OrganizationPtr big_Organ(
new Organization(
"O",
"Organ"));
127 big_Organ->parent = OrganizationPtr(
new Organization(
"o1"));
143 unit_assert(tp->affiliations.at(0) == feemail_organ);
164 sd = SearchDatabasePtr(
new SearchDatabase(
"sd4",
"SearchDatabase"));
167 DBSequencePtr dbs(
new DBSequence(
"dbs1",
"db pointers"));
168 dbs->searchDatabasePtr = SearchDatabasePtr(
new SearchDatabase(
"sd2"));
171 dbs = DBSequencePtr(
new DBSequence(
"dbs2",
"closing sequence"));
172 dbs->searchDatabasePtr = SearchDatabasePtr(
new SearchDatabase(
"sd3"));
178 unit_assert(dps1->searchDatabasePtr->name ==
"everywhere");
181 unit_assert(dps1->searchDatabasePtr->name ==
"for");
193 sil->spectrumIdentificationResult.push_back(sir);
194 sir->spectrumIdentificationItem.push_back(sii);
196 MeasurePtr measureMz(
new Measure(
"M_MZ",
"m/z measure"));
197 sil->fragmentationTable.push_back(measureMz);
200 sii->fragmentation.push_back(it);
203 fa->measurePtr.reset(
new Measure(
"M_MZ"));
204 it->fragmentArray.push_back(fa);
221 int main(
int argc,
char* argv[])
227 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
std::vector< OrganizationPtr > affiliations
Implementation of MeasureType from the mzIdentML schema.
Implementation of PersonType from the mzIdentML schema.
std::vector< SpectrumIdentificationListPtr > spectrumIdentificationList
int main(int argc, char *argv[])
Implementation of SpectrumIdentificationResultType from the mzIdentML schema.
DataCollection dataCollection
#define unit_assert_operator_equal(expected, actual)
AnalysisSampleCollection analysisSampleCollection
boost::shared_ptr< Contact > ContactPtr
Implementation of the MzIdentMLType from the mzIdentML schema.
Implementation of IonTypeType from the mzIdentML schema.
Implementation of the SampleType from the mzIdentML schema.
std::vector< SamplePtr > samples
Implementation of AbstractOrganizationType from the mzIdentML schema.
void testAnalysisSampleCollection()
PWIZ_API_DECL void resolve(ContactRole &cr, IdentData &mzid)
#define TEST_PROLOG_EX(argc, argv, suffix)
std::vector< ContactPtr > auditCollection
std::vector< DBSequencePtr > dbSequences
Implementation of FragmentArrayType from the mzIdentML schema.
SequenceCollection sequenceCollection
MS_role_type
role type: Role of a Person or Organization.
Implementation of SearchDatabaseType from the mzIdentML schema.
ContactRolePtr contactRolePtr
Implementation of AnalysisSoftwareType from the mzIdentML schema.
std::vector< AnalysisSoftwarePtr > analysisSoftwareList
boost::shared_ptr< Sample > SamplePtr
Implementation of DBSequenceType from the mzIdentML schema.
Implementation of SpectrumIdentificationItemType from the mzIdentML schema.
AnalysisData analysisData
Implementation of SpectrumIdentificationListType from the mzIdentML schema.