33 using boost::iostreams::stream_offset;
39 template <
typename object_type>
42 if (
os_) *
os_ <<
"testObject(): " <<
typeid(a).name() << endl;
49 if (
os_) *
os_ << oss.str() << endl;
54 istringstream iss(oss.str());
60 if (diff &&
os_) *
os_ <<
"diff:\n" << diff << endl;
101 template <
typename object_type>
105 a.userParams.push_back(
UserParam(
"goober",
"goo",
"peanuts"));
168 if (
os_) *
os_ <<
"testTraData():\n";
178 if (
os_) *
os_ << oss.str() << endl;
183 istringstream iss(oss.str());
189 if (diff &&
os_) *
os_ <<
"diff:\n" << diff << endl;
209 int main(
int argc,
char* argv[])
215 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
std::string id
the short label to be used as a reference tag with which to refer to this particular Controlled Vocab...
void testObject(const object_type &a)
The XMLWriter class provides simple, tag-level XML syntax writing.
std::string value
the value for the parameter, where appropriate.
Calculate diffs of objects in a ProteoWizard data model hierarchy.
Information about an ontology or CV source and a short 'lookup' tag to refer to.
std::string version
Version of the software program described.
std::string id
Identifier for the software to be used for referencing within a document.
UO_second
second: A time unit which is equal to the duration of 9 192 631 770 periods of the radiation correspo...
void testNamedParamContainer()
MS_selected_ion_m_z
selected ion m/z: Mass-to-charge ratio of an selected ion.
void diff(const string &filename1, const string &filename2)
std::string fullName
the usual name for the resource (e.g. The PSI-MS Controlled Vocabulary).
Uncontrolled user parameters (essentially allowing free text). Before using these, one should verify whether there is an appropriate CV term available, and if so, use the CV term instead.
std::string type
the datatype of the parameter, where appropriate (e.g.: xsd:float).
MS_m_z
m/z: Three-character symbol m/z is used to denote the quantity formed by dividing the mass of an ion ...
MS_ionization_type
ionization type: The method by which gas phase ions are generated from the sample.
PWIZ_API_DECL void write(minimxml::XMLWriter &writer, const CV &cv)
std::string URI
the URI for the resource.
std::string name
the name for the parameter.
UO_minute
minute: A time unit which is equal to 60 seconds.
CVID units
an optional CV parameter for the unit term associated with the value, if any (e.g. MS_electron_volt).
#define TEST_PROLOG_EX(argc, argv, suffix)
PWIZ_API_DECL void read(std::istream &is, CV &cv)
PWIZ_API_DECL void initializeTiny(IdentData &mzid)
void set(CVID cvid, const std::string &value="", CVID units=CVID_Unknown)
set/add a CVParam (not recursive)
int main(int argc, char *argv[])
std::string version
the version of the CV from which the referred-to terms are drawn.
represents a tag-value pair, where the tag comes from the controlled vocabulary