#include <xmlwriter.h>
Public Member Functions | |
XmlWriter () | |
~XmlWriter () | |
bool | writeTofile (const KURL &url) |
void | setGeneralInformation (GeneralInformation &generalInformation) |
void | setAcquisitionSystemInformation (QMap< QString, float > &acquisitionSystemInfo) |
void | setVideoInformation (QMap< QString, float > &videoInformation) |
void | setLfpInformation (int lfpSamplingRate) |
void | setFilesInformation (QValueList< FileInformation > &files) |
void | setAnatomicalDescription (QMap< int, QValueList< int > > &anatomicalGroups, QMap< QString, QMap< int, QString > > &attributes) |
void | setSpikeDetectionInformation (QMap< int, QValueList< int > > &spikeGroups, QMap< int, QMap< QString, QString > > &information) |
void | setMiscellaneousInformation (float screenGain) |
void | setNeuroscopeVideoInformation (NeuroscopeVideoInfo &videoInfo) |
void | setNeuroscopeSpikeInformation (int nbSamples, int peakSampleIndex) |
void | setChannelDisplayInformation (QValueList< ChannelColors > &colorList, QMap< int, int > &channelDefaultOffsets) |
void | setProgramsInformation (QValueList< ProgramInformation > &programs) |
void | setUnitsInformation (QMap< int, QValueList< QString > > &units) |
XmlWriter::XmlWriter | ( | ) |
Constructor.
XmlWriter::~XmlWriter | ( | ) |
Destructor.
bool XmlWriter::writeTofile | ( | const KURL & | url | ) |
Writes the xml tree to a parameter file given by url
.
url | url of the file to write to. |
void XmlWriter::setGeneralInformation | ( | GeneralInformation & | generalInformation | ) |
Creates the element containing all the general information.
generalInformation | reference to ageneralInformation a GeneralInformation containing all the information. |
void XmlWriter::setAcquisitionSystemInformation | ( | QMap< QString, float > & | acquisitionSystemInfo | ) |
Creates the elements related to the acquisition system.
acquisitionSystemInfo | reference to a map acquisitionSystemInfo providing the acquisition system information. |
void XmlWriter::setVideoInformation | ( | QMap< QString, float > & | videoInformation | ) |
Creates the elements containing the video information.
videoInformation | reference to the map providing the video system information. |
void XmlWriter::setLfpInformation | ( | int | lfpSamplingRate | ) |
Creates the element related to the field potentials.
lfpSamplingRate | local field potential sampling rate in hertz. |
void XmlWriter::setFilesInformation | ( | QValueList< FileInformation > & | files | ) |
Creates the elements containing the information for the additional files derive from the original raw data file (.dat file).
files | a reference to a list of FileInformation. |
void XmlWriter::setAnatomicalDescription | ( | QMap< int, QValueList< int > > & | anatomicalGroups, | |
QMap< QString, QMap< int, QString > > & | attributes | |||
) |
Creates the elements related to the anatomical description.
anatomicalGroups | reference to a map providing information about the anatomical group to which each channel belongs. | |
attributes | reference to a map providing the correspondance between the attribute names and a map providing for each channel the value of the attribute. |
void XmlWriter::setSpikeDetectionInformation | ( | QMap< int, QValueList< int > > & | spikeGroups, | |
QMap< int, QMap< QString, QString > > & | information | |||
) |
Creates the elements related to the spike detection.
spikeGroups | reference to the map providing the correspondance between the spike group ids and the channel ids. | |
information | reference to the map providing the correspondance between the spike group ids and a map providing the name and the value of an additional information. |
void XmlWriter::setMiscellaneousInformation | ( | float | screenGain | ) |
Creates the elements containing NeuroScope miscellaneous information.
screenGain | screen gain in millivolts by centimeters used to display the field potentiels. |
void XmlWriter::setNeuroscopeVideoInformation | ( | NeuroscopeVideoInfo & | videoInfo | ) |
Creates the elements containing the video information used in NeuroScope.
videoInfo | reference to a NeuroscopeVideoInfo. |
void XmlWriter::setNeuroscopeSpikeInformation | ( | int | nbSamples, | |
int | peakSampleIndex | |||
) |
Creates the elements containing the spike information used in NeuroScope.
nbSamples | number of samples in a spike. | |
peakSampleIndex | sample index corresponding to the peak of the spike. |
void XmlWriter::setChannelDisplayInformation | ( | QValueList< ChannelColors > & | colorList, | |
QMap< int, int > & | channelDefaultOffsets | |||
) |
Creates the elements related to the channels colors used in NeuroScope.
colorList | reference to a list of ChannelColors (color use to display the channel, color of the anatomical group to which the channel belongs, color of the spike group to which the channel belongs). | |
channelDefaultOffsets | reference to a map providing channel default offsets. |
void XmlWriter::setProgramsInformation | ( | QValueList< ProgramInformation > & | programs | ) |
Creates the elements containing the information for all the programs used to process the data link to the current parameter file.
programs | a reference to a list of ProgramInformation. |
void XmlWriter::setUnitsInformation | ( | QMap< int, QValueList< QString > > & | units | ) |
Creates the elements containing the information for units.
units | a reference to a map providing the units information. |