Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012

HistoryObj.cpp

Go to the documentation of this file.
00001 // $Header: /tmp/svngaudi/tmp.jEpFh25751/Gaudi/GaudiKernel/src/Lib/HistoryObj.cpp,v 1.1 2004/07/14 18:13:58 leggett Exp $
00002 //====================================================================
00003 //      History.cpp
00004 //--------------------------------------------------------------------
00005 //
00006 //  Description: Implementation of HistoryObj base class
00007 //
00008 //  Author     : Charles Leggett
00009 //====================================================================
00010 
00011 #define GAUDIKERNEL_HISTORYOBJ_CPP
00012 
00013 #include "GaudiKernel/HistoryObj.h"
00014 #include "GaudiKernel/Property.h"
00015 
00016 using namespace std;
00017 
00018 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00019 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00020 
00021 HistoryObj::HistoryObj()
00022 {
00023 
00024 }
00025 
00026 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00027 
00028 std::string 
00029 HistoryObj::convert_string(const std::string& input_string){
00030 
00031   //Conversion of special characteres into xml language
00032 
00033   std::string::const_iterator itr_string;
00034   std::string modified_string;
00035 
00036   for(itr_string=input_string.begin(); itr_string!=input_string.end(); itr_string++) {
00037     if (*itr_string == '&') modified_string.append("&");
00038     else if (*itr_string == '<') modified_string.append("&lt;");
00039     else if (*itr_string == '>') modified_string.append("&gt;");
00040     else if (*itr_string == '"') modified_string.append("&quot;");
00041     else if (*itr_string == '\'') modified_string.append("&apos;");
00042     else if (*itr_string == '\"') modified_string.append("&quot;");
00043     else modified_string+=*itr_string;
00044   }
00045 
00046   return modified_string;
00047 }
00048 
00049 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00050 
00051 void 
00052 HistoryObj::indent(std::ostream& ost, int i) const {
00053   while (i > 0) {
00054     ost << " ";
00055     i--;
00056   }
00057 }
00058 
00059 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00060 
00061 const CLID& 
00062 HistoryObj::classID() { 
00063 
00064   static CLID CLID_HistoryObj = 86452397;
00065   return CLID_HistoryObj; 
00066 
00067 }
00068 
00069 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00070 
00071 // Output stream.
00072 
00073 std::ostream& operator<<(std::ostream& lhs, const HistoryObj& rhs) {
00074 
00075   rhs.dump(lhs,false);
00076 
00077   return lhs;
00078 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:24 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004