G4AttValue.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 
00029 #ifndef G4ATTVALUE_HH
00030 #define G4ATTVALUE_HH
00031 
00032 #include "globals.hh"
00033 
00034 // Class Description:
00035 //
00036 // @class G4AttValue
00037 //
00038 // @brief This class represents a HepRep-style Attribute Value.
00039 // G4AttValues can be attached to a Trajectory, Trajectory Point or Sensitive
00040 // Detector Hit.  These attributes are then made available to the end user
00041 // in interactive visualization systems (such as WIRED).
00042 // The G4AttValue is further defined in a G4AttDef object.
00043 // The association between the G4AttValue and the G4AttDef object is
00044 // made through the data member "name".
00045 // For details, see the HepRep home page at http://heprep.freehep.org
00046 //  
00047 // @author M.Frailis 
00048 // @author R.Giannitrapani
00049 // @author J.Perl
00050 // Class Description - End:
00051 
00052 
00053   class G4AttValue {
00054     
00055   public:
00056     G4AttValue(const G4String& name,
00057                const G4String& value,
00058                const G4String& showLabel): 
00059       m_name(name),m_value(value),
00060       m_showLabel(showLabel){};
00061     G4AttValue(){};
00062     
00063     const G4String& GetName()const{return m_name;};
00064     const G4String& GetValue()const{return m_value;};
00065     const G4String& GetShowLabel()const{return m_showLabel;};
00066 
00067     void SetName(const G4String& name){m_name = name;};
00068     void SetValue(const G4String& val){m_value = val;};
00069     void SetShowLabel(const G4String& lab){m_showLabel = lab;};
00070 
00071   private:
00073     G4String m_name;
00075     G4String m_value;
00077     G4String m_showLabel;
00078   };
00079 
00080 #endif //G4ATTVALUE_H

Generated on Mon May 27 17:47:42 2013 for Geant4 by  doxygen 1.4.7