41 ContactPtr c1 = ContactPtr(
new Contact(
"c1",
"larry"));
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"));
57 ContactPtr c1 = ContactPtr(
new Contact(
"c1",
"larry"));
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"));
72 SamplePtr sample(
new Sample);
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");
92 SamplePtr sample(
new Sample(
"s1",
"Sample No. 1"));
93 sample->subSamples.push_back(SamplePtr(
new Sample(
"s2")));
100 sample = SamplePtr(
new Sample(
"s2",
"Sample No. 2"));
101 sample->subSamples.push_back(SamplePtr(
new Sample(
"s1")));
116 ContactPtr cont(
new Contact(
"c1",
"contact1"));
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"));
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);
221int main(
int argc,
char* argv[])
227 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
MS_role_type
role type: Role of a Person or Organization.
int main(int argc, char *argv[])
void testAnalysisSampleCollection()
PWIZ_API_DECL void resolve(ContactRole &cr, IdentData &mzid)
std::vector< SpectrumIdentificationListPtr > spectrumIdentificationList
std::vector< SamplePtr > samples
Implementation of AnalysisSoftwareType from the mzIdentML schema.
Implementation of DBSequenceType from the mzIdentML schema.
AnalysisData analysisData
Implementation of FragmentArrayType from the mzIdentML schema.
Implementation of the MzIdentMLType from the mzIdentML schema.
SequenceCollection sequenceCollection
DataCollection dataCollection
std::vector< AnalysisSoftwarePtr > analysisSoftwareList
std::vector< ContactPtr > auditCollection
AnalysisSampleCollection analysisSampleCollection
Implementation of IonTypeType from the mzIdentML schema.
Implementation of MeasureType from the mzIdentML schema.
Implementation of AbstractOrganizationType from the mzIdentML schema.
boost::shared_ptr< Organization > parent
Implementation of PersonType from the mzIdentML schema.
std::vector< OrganizationPtr > affiliations
ContactRolePtr contactRolePtr
Implementation of the SampleType from the mzIdentML schema.
Implementation of SearchDatabaseType from the mzIdentML schema.
std::vector< DBSequencePtr > dbSequences
Implementation of SpectrumIdentificationItemType from the mzIdentML schema.
Implementation of SpectrumIdentificationListType from the mzIdentML schema.
Implementation of SpectrumIdentificationResultType from the mzIdentML schema.
#define TEST_PROLOG_EX(argc, argv, suffix)
#define unit_assert_operator_equal(expected, actual)