コード例 #1
0
void Ladder :: OutputTo (RGTextOutput& xmlFile, LadderInputFile& inputFile) {

	RGString link ("http://www.w3.org/2001/XMLSchema-instance");

	xmlFile << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
	xmlFile << "<KitData xmlns:xsi=\"" << link.GetData () << "\" xsi:noNamespaceSchemaLocation=\"MarkerSet.xsd\">\n";
	xmlFile << "\t<Version>2.0</Version>\n";
	xmlFile << "\t<Kits>\n";
	xmlFile << "\t\t<Set>\n";
	xmlFile << "\t\t\t<Name>" << mMarkerSetName.GetData () << "</Name>\n";
	xmlFile << "\t\t\t<NChannels>" << mNumberOfChannels << "</NChannels>\n";
	xmlFile << "\t\t\t<LS>\n";
	
	OutputILSListTo (xmlFile);

	xmlFile << "\t\t\t\t<ChannelNo>" << mChannelForILS << "</ChannelNo>\n";
	xmlFile << "\t\t\t</LS>\n";
	xmlFile << "\t\t\t<FileNameSuffix>" << mSuffix << "</FileNameSuffix>\n";
	xmlFile << "\t\t\t<GenotypeSuffix>" << mSuffix << "</GenotypeSuffix>\n";
	xmlFile << "\t\t\t<DirectorySearchString>" << mSuffix << "</DirectorySearchString>\n";
	OutputChannelMapTo (xmlFile, inputFile);

	list <Locus*>::const_iterator locusIterator;
	Locus* nextLocus;

	for (locusIterator = mLocusList.begin(); locusIterator != mLocusList.end(); locusIterator++) {

		nextLocus = *locusIterator;
		nextLocus->OutputTo (xmlFile);
	}

	xmlFile << "\t\t</Set>\n";
	xmlFile << "\t</Kits>\n";
	xmlFile << "</KitData>";
}