Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

rHistoServer.cpp

Go to the documentation of this file.
00001 #include "Event/rHistoServer.h"
00002 #include "Event/messageManager.h"
00003 
00004 //###############################
00005 rHistoServer::rHistoServer()
00006 //###############################
00007 {
00009         m_histos = new serverVI<rHisto>();
00011         m_optServer = new optionServer();
00012 
00014         m_optServer->setOptionFileName("");
00015 
00016 }
00017 //###############################
00018 rHistoServer::~rHistoServer()
00019 //###############################
00020 {
00022         delete m_histos;
00023         delete m_optServer;
00024 }
00025 
00026 //#############################
00027 void rHistoServer::newHisto(std::string typ, std::string name, std::string title, 
00028                            double nx, double x0, double xf,
00029                            double ny, double y0, double yf)
00030 //#############################
00031 {
00032         addHisto( new rHisto(typ,name,title,nx,x0,xf,ny,y0,yf) );
00033 }
00034 //###############################
00035 void rHistoServer::addHisto(rHisto* histo)
00036 //###############################
00037 {
00038         std::string hname = histo->histoName();
00039         if (m_histos->search(hname) || m_optServer->search(hname)) {
00040                 messageManager::instance()->message(" histo already in server! "+hname);
00041                 return;
00042         }
00044         m_histos->add(hname,histo);
00046         m_optServer->addToServer(hname,histo);
00047 }

Generated at Fri Aug 18 12:57:38 2000 for centella framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000