Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/sg/win_action is written in an unsupported language. File is not indexed.

0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003 
0004 #ifndef tools_sg_win_action
0005 #define tools_sg_win_action
0006 
0007 #include "action"
0008 
0009 namespace tools {
0010 namespace sg {
0011 
0012 class win_action : public action {
0013   TOOLS_ACTION(win_action,tools::sg::win_action,action)
0014 public:
0015   win_action(std::ostream& a_out,unsigned int a_ww,unsigned int a_wh)
0016   :parent(a_out)
0017   ,m_ww(a_ww) //WARNING : we assume that we receive a not zero value.
0018   ,m_wh(a_wh) //WARNING : we assume that we receive a not zero value.
0019   {}
0020   virtual ~win_action(){}
0021 protected:
0022   win_action(const win_action& a_from)
0023   :parent(a_from)
0024   ,m_ww(a_from.m_ww)
0025   ,m_wh(a_from.m_wh)
0026   {}
0027   win_action& operator=(const win_action& a_from){
0028     parent::operator=(a_from);
0029     m_ww = a_from.m_ww;
0030     m_wh = a_from.m_wh;
0031     return *this;
0032   }
0033 public:
0034   unsigned int ww() const {return m_ww;}
0035   unsigned int wh() const {return m_wh;}
0036 protected:
0037   unsigned int m_ww;  //window width
0038   unsigned int m_wh;  //window height
0039 };
0040 
0041 }}
0042 
0043 #endif