src/to_xml.h

См. документацию.
00001 //
00002 // C++ Interface: to_xml
00003 //
00004 // Description: 
00005 //
00006 //
00007 // Author: yessss <gennadiyesss@mail.ru>, (C) 2007
00008 //
00009 // Copyright: See COPYING file that comes with this distribution
00010 //
00011 //
00012 
00013 #ifndef TO_XML_H
00014 #define TO_XML_H
00015 
00016 #include <iostream>
00017 
00018 template<typename T>
00019 inline void to_xml(const T& obj, const char* name = NULL, std::ostream& out = std::cout) {
00020      out << (to_string(obj));
00021 }
00022 
00023 template<typename T>
00024 inline const char* to_string(const T& obj) {
00025      return "unknown data type";
00026 }
00027 
00028 template<typename T>
00029 inline T from_string(const char* c) {
00030      return T();
00031 }
00032 
00033 #endif //TO_XML_H

Документация по XDataServer. Последние изменения: Thu Jul 12 11:49:42 2007. Создано системой  doxygen 1.5.2