33using boost::iostreams::stream_offset;
39template <
typename object_type>
42 if (
os_) *
os_ <<
"testObject(): " <<
typeid(a).name() << endl;
49 if (
os_) *
os_ << oss.str() << endl;
54 istringstream iss(oss.str());
101template <
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());
209int main(
int argc,
char* argv[])
215 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
void diff(const string &filename1, const string &filename2)
The XMLWriter class provides simple, tag-level XML syntax writing.
UO_minute
minute: A time unit which is equal to 60 seconds.
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_selected_ion_m_z
selected ion m/z: Mass-to-charge ratio of an selected ion.
MS_ionization_type
ionization type: The method by which gas phase ions are generated from the sample.
UO_second
second: A time unit which is equal to the duration of 9 192 631 770 periods of the radiation correspo...
PWIZ_API_DECL void initializeTiny(ProteomeData &pd)
PWIZ_API_DECL void read(std::istream &is, CV &cv)
PWIZ_API_DECL void write(minimxml::XMLWriter &writer, const CV &cv)
Information about an ontology or CV source and a short 'lookup' tag to refer to.
std::string id
the short label to be used as a reference tag with which to refer to this particular Controlled Vocab...
std::string fullName
the usual name for the resource (e.g. The PSI-MS Controlled Vocabulary).
std::string URI
the URI for the resource.
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
Calculate diffs of objects in a ProteoWizard data model hierarchy.
void set(CVID cvid, const std::string &value="", CVID units=CVID_Unknown)
set/add a CVParam (not recursive)
Uncontrolled user parameters (essentially allowing free text). Before using these,...
CVID units
an optional CV parameter for the unit term associated with the value, if any (e.g....
std::string value
the value for the parameter, where appropriate.
std::string name
the name for the parameter.
std::string type
the datatype of the parameter, where appropriate (e.g.: xsd:float).
std::string id
Identifier for the software to be used for referencing within a document.
std::string version
Version of the software program described.
int main(int argc, char *argv[])
void testNamedParamContainer()
void testObject(const object_type &a)
#define TEST_PROLOG_EX(argc, argv, suffix)