#include <dump_file.hh>
 | 
|   | FilenameGenerator (const std::string &prefix, const std::string &postfix) | 
|   | 
| void  | generate () | 
|   | 
| std::string  | name (std::size_t run_number, unsigned int detector_id) const | 
|   | 
- Author
 - cpellegrino 
 
Definition at line 12 of file dump_file.hh.
 
◆ FilenameGenerator()
  
  
      
        
          | FilenameGenerator::FilenameGenerator  | 
          ( | 
          const std::string & |           prefix,  | 
         
        
           | 
           | 
          const std::string & |           postfix ) | 
         
       
   | 
  
inline   | 
  
 
 
◆ generate()
  
  
      
        
          | void FilenameGenerator::generate  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ name()
  
  
      
        
          | std::string FilenameGenerator::name  | 
          ( | 
          std::size_t |           run_number,  | 
         
        
           | 
           | 
          unsigned int |           detector_id ) const | 
         
       
   | 
  
inline   | 
  
 
Definition at line 34 of file dump_file.hh.
   35  {
   36    std::ostringstream oss;
   38        << "_D"
   39        << std::setfill('0') << std::setw(8)
   40        << detector_id
   41        << "_R"
   42        << std::setfill('0') << std::setw(8)
   43        << run_number
   44        << "_N"
   45        << std::setfill('0') << std::setw(8)
   48 
   49    return oss.str();
   50  }
 
 
 
◆ m_prefix
  
  
      
        
          | std::string FilenameGenerator::m_prefix | 
         
       
   | 
  
private   | 
  
 
 
◆ m_postfix
  
  
      
        
          | std::string FilenameGenerator::m_postfix | 
         
       
   | 
  
private   | 
  
 
 
◆ m_file_no
  
  
      
        
          | std::size_t FilenameGenerator::m_file_no | 
         
       
   | 
  
private   | 
  
 
 
◆ m_detector_id
  
  
      
        
          | unsigned int FilenameGenerator::m_detector_id | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: