Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/long_out 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_long_out
0005 #define tools_long_out
0006 
0007 #include "snpf"
0008 #include <string>
0009 
0010 namespace tools {
0011 
0012 class long_out : public std::string {
0013   typedef std::string parent;
0014 public:
0015   long_out(long a_value) {
0016     char _s[512];
0017     snpf(_s,sizeof(_s),"%ld",a_value);
0018     parent::operator+=(_s);
0019   }
0020 public:
0021   long_out(const long_out& a_from):parent(a_from){}
0022   long_out& operator=(const long_out& a_from){parent::operator=(a_from);return *this;}
0023 };
0024 
0025 }
0026 
0027 #endif