User Manual, Developers Guide and API Documentation

wns::logger::XMLFormat Class Reference

Formats messages in XML. More...

#include <logger/XMLFormat.hpp>

Inheritance diagram for wns::logger::XMLFormat:

Inheritance graph
[legend]
Collaboration diagram for wns::logger::XMLFormat:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual std::string formatMessage (const RawMessage &m)
virtual std::string formatRegistration (const std::string &aModuleRef, const std::string &aLocationRef)
 XMLFormat (const pyconfig::View &pyco)


Detailed Description

Message are formatted according to the following schema
	 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	   <xsd:annotation>
	     <xsd:documentation xml:lang="EN">
	       Schema for WNS message output
	     </xsd:documentation>
	   </xsd:annotation>

	   <xsd:element name="simulation" type="SimulationType"/>

	   <xsd:complexType name="SimulationType">
	     <xsd:sequence>
	       <xsd:element name="message" type="MessageType" maxOccurs="unbounded"/>
	     </xsd:sequence>
	   </xsd:complexType>

	   <xsd:complexType name="MessageType">
	     <xsd:sequence>
	       <xsd:element name="time" type="xsd:decimal"/>
	       <xsd:element name="module" type="xsd:string"/>
	       <xsd:element name="location" type="xsd:string"/>
	       <xsd:element name="text" type="xsd:string"/>
	     </xsd:sequence>
	   </xsd:complexType>
	 </xsd:schema>	

Definition at line 65 of file XMLFormat.hpp.


Constructor & Destructor Documentation

XMLFormat::XMLFormat ( const pyconfig::View pyco  ) 

Definition at line 34 of file XMLFormat.cpp.


Member Function Documentation

std::string XMLFormat::formatMessage ( const RawMessage m  )  [virtual]

Implements wns::logger::FormatStrategy.

Definition at line 37 of file XMLFormat.cpp.

std::string XMLFormat::formatRegistration ( const std::string &  aModuleRef,
const std::string &  aLocationRef 
) [virtual]

Implements wns::logger::FormatStrategy.

Definition at line 50 of file XMLFormat.cpp.


The documentation for this class was generated from the following files:

Generated on Sun May 27 03:33:00 2012 for openWNS by  doxygen 1.5.5