Print

Print


Commit in lcdd on MAIN
src/lcdd/geant4/LCDDHeaderRecord.cc+146added 1.1
include/lcdd/geant4/LCDDHeaderRecord.hh+29-1111.4 -> 1.5
+175-111
1 added + 1 modified, total 2 files
move header code to source file

lcdd/src/lcdd/geant4
LCDDHeaderRecord.cc added at 1.1
diff -N LCDDHeaderRecord.cc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ LCDDHeaderRecord.cc	10 Jul 2013 18:16:35 -0000	1.1
@@ -0,0 +1,146 @@
+// $Header: /cvs/lcd/lcdd/src/lcdd/geant4/LCDDHeaderRecord.cc,v 1.1 2013/07/10 18:16:35 jeremy Exp $
+
+// LCDD
+#include "lcdd/geant4/LCDDHeaderRecord.hh"
+
+LCDDHeaderRecord::LCDDHeaderRecord()
+{
+}
+
+LCDDHeaderRecord::~LCDDHeaderRecord()
+{
+}
+
+
+void LCDDHeaderRecord::setDetectorName(const std::string& dn)
+{
+    _detectorName = dn;
+}
+
+
+void LCDDHeaderRecord::setDetectorVersion(const std::string& dv)
+{
+    _detectorVersion = dv;
+}
+
+void LCDDHeaderRecord::setDetectorUrl(const std::string& u)
+{
+    _detectorUrl = u;
+}
+
+void LCDDHeaderRecord::setAuthorName(const std::string& an)
+{
+    _authorName = an;
+}
+
+void LCDDHeaderRecord::setGeneratorName(const std::string& gn)
+{
+    _generatorName = gn;
+}
+
+
+void LCDDHeaderRecord::setGeneratorVersion(const std::string& gv)
+{
+    _generatorVersion = gv;
+}
+
+
+void LCDDHeaderRecord::setGeneratorChecksum(const std::string& c)
+{
+    _generatorChecksum = c;
+}
+
+
+void LCDDHeaderRecord::setGeneratorFile(const std::string& gurl)
+{
+    _generatorFile = gurl;
+}
+
+
+void LCDDHeaderRecord::setAuthorEmail(const std::string& ae)
+{
+    _authorEmail = ae;
+}
+
+
+void LCDDHeaderRecord::setComment(const std::string& c)
+{
+    _comment = c;
+}
+
+void LCDDHeaderRecord::setChecksum(const std::string& c)
+{
+    _generatorChecksum = c;
+}
+
+
+const std::string& LCDDHeaderRecord::getDetectorName() const
+{
+    return _detectorName;
+}
+
+const std::string& LCDDHeaderRecord::getDetectorVersion() const
+{
+    return _detectorVersion;
+}
+
+
+const std::string& LCDDHeaderRecord::getDetectorUrl() const
+{
+    return _detectorUrl;
+}
+
+const std::string& LCDDHeaderRecord::getComment() const
+{
+    return _comment;
+}
+
+const std::string& LCDDHeaderRecord::getAuthorName() const
+{
+    return _authorName;
+}
+
+const std::string& LCDDHeaderRecord::getAuthorEmail() const
+{
+    return _authorEmail;
+}
+
+const std::string& LCDDHeaderRecord::getGeneratorName() const
+{
+    return _generatorName;
+}
+
+const std::string& LCDDHeaderRecord::getGeneratorVersion() const
+{
+    return _generatorVersion;
+}
+
+const std::string& LCDDHeaderRecord::getGeneratorFile() const
+{
+    return _generatorFile;
+}
+
+
+const std::string& LCDDHeaderRecord::getGeneratorChecksum() const
+{
+    return _generatorChecksum;
+}
+
+std::ostream& LCDDHeaderRecord::printOut(std::ostream &os)
+{
+    os << std::endl << "***** LCDD Header *****" << std::endl;
+
+    os << "detectorName <" << _detectorName << ">" << std::endl;
+    os << "detectorVersion <" << _detectorVersion << ">" << std::endl;
+    os << "detectorUrl <" << _detectorUrl << ">" << std::endl;
+    os << "authorName <" << _authorName << ">" << std::endl;
+    os << "authorEmail <" << _authorEmail << ">" << std::endl;
+    os << "generatorName <" << _generatorName << ">" << std::endl;
+    os << "generatorVersion <" << _generatorVersion << ">" << std::endl;
+    os << "generatorFile <" << _generatorFile << ">" << std::endl;
+    os << "generatorChecksum <" << _generatorChecksum << ">" << std::endl;
+    os << "comment" << std::endl << _comment << std::endl << "end comment" << std::endl;
+
+    os << "***********************" << std::endl << std::endl;
+    return os;
+}

lcdd/include/lcdd/geant4
LCDDHeaderRecord.hh 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- LCDDHeaderRecord.hh	10 Jul 2013 18:06:17 -0000	1.4
+++ LCDDHeaderRecord.hh	10 Jul 2013 18:16:35 -0000	1.5
@@ -1,8 +1,12 @@
-// $Header: /cvs/lcd/lcdd/include/lcdd/geant4/LCDDHeaderRecord.hh,v 1.4 2013/07/10 18:06:17 jeremy Exp $
+// $Header: /cvs/lcd/lcdd/include/lcdd/geant4/LCDDHeaderRecord.hh,v 1.5 2013/07/10 18:16:35 jeremy Exp $
 
 #ifndef LCDD_GEANT4_LCDDHEADERRECORD_HH
 #define LCDD_GEANT4_LCDDHEADERRECORD_HH 1
 
+// STL
+#include <string>
+#include <iostream>
+
 /**
  * @brief This is the header record for an LCDD geometry.
  * @todo Move code to source file.
@@ -15,18 +19,12 @@
 	/**
 	 * Class constructor.
 	 */
-	LCDDHeaderRecord()
-	{
-		;
-	}
+	LCDDHeaderRecord();
 
 	/**
 	 * Class destructor.
 	 */
-	virtual ~LCDDHeaderRecord()
-	{
-		;
-	}
+	virtual ~LCDDHeaderRecord();
 
 public:
 
@@ -34,214 +32,134 @@
 	 * Set the name of the detector.
 	 * @param[in] dn The name of the detector.
 	 */
-    void setDetectorName(const std::string& dn)
-    {
-        _detectorName = dn;
-    }
+    void setDetectorName(const std::string& dn);
 
     /**
      * Set the version of the detector.
      * @param[in] dv The detector version.
      */
-    void setDetectorVersion(const std::string& dv)
-    {
-        _detectorVersion = dv;
-    }
+    void setDetectorVersion(const std::string& dv);
 
     /**
      * Set the URL of the input LCDD file.
      * @param[in] u The URL of the input file.
      */
-    void setDetectorUrl(const std::string& u)
-    {
-        _detectorUrl = u;
-    }
+    void setDetectorUrl(const std::string& u);
 
     /**
      * Set the author name.
      * @param[in] an The author name.
      */
-    void setAuthorName(const std::string& an)
-    {
-        _authorName = an;
-    }
+    void setAuthorName(const std::string& an);
 
     /**
      * Set the generator name.
      * @param[in] gn The generator name.
      */
-    void setGeneratorName(const std::string& gn)
-    {
-        _generatorName = gn;
-    }
+    void setGeneratorName(const std::string& gn);
 
     /**
      * Set the generator version.
      * @param[in] gv The generator version.
      */
-    void setGeneratorVersion(const std::string& gv)
-    {
-        _generatorVersion = gv;
-    }
+    void setGeneratorVersion(const std::string& gv);
 
     /**
      * Set the generator checksum.
      * @param[in] c The generator checksum.
      */
-    void setGeneratorChecksum(const std::string& c)
-    {
-        _generatorChecksum = c;
-    }
+    void setGeneratorChecksum(const std::string& c);
 
     /**
      * Set the generator input file.
      * @param[in] gurl The generator file.
      */
-    void setGeneratorFile(const std::string& gurl)
-    {
-        _generatorFile = gurl;
-    }
+    void setGeneratorFile(const std::string& gurl);
 
     /**
      * Set the author email.
      * @param[in] ae The author email.
      */
-    void setAuthorEmail(const std::string& ae)
-    {
-        _authorEmail = ae;
-    }
+    void setAuthorEmail(const std::string& ae);
 
     /**
      * Set the comment.
      * @param[in] c The comment.
      */
-    void setComment(const std::string& c)
-    {
-        _comment = c;
-    }
+    void setComment(const std::string& c);
 
     /**
      * Set the checksum.
      * @param[in] c The checksum.
      */
-    void setChecksum(const std::string& c)
-    {
-        _generatorChecksum = c;
-    }
+    void setChecksum(const std::string& c);
 
     /**
      * Get the detector name.
      * @return The detector name.
      */
-    const std::string& getDetectorName() const
-    {
-        return _detectorName;
-    }
+    const std::string& getDetectorName() const;
 
     /**
      * Get the detector version.
      * @return The detector version.
      */
-    const std::string& getDetectorVersion() const
-    {
-        return _detectorVersion;
-    }
+    const std::string& getDetectorVersion() const;
 
     /**
      * Get the detector URL.
      * @return The detector URL.
      */
-    const std::string& getDetectorUrl() const
-    {
-        return _detectorUrl;
-    }
+    const std::string& getDetectorUrl() const;
 
     /**
      * Get the comment.
      * @return The comment.
      */
-    const std::string& getComment() const
-    {
-        return _comment;
-    }
+    const std::string& getComment() const;
 
     /**
      * Get the author name.
      * @return The author name.
      */
-    const std::string& getAuthorName() const
-    {
-        return _authorName;
-    }
+    const std::string& getAuthorName() const;
 
     /**
      * Get the author email.
      * @return The author email.
      */
-    const std::string& getAuthorEmail() const
-    {
-        return _authorEmail;
-    }
+    const std::string& getAuthorEmail() const;
 
     /**
      * Get the generator name.
      * @return The generator name.
      */
-    const std::string& getGeneratorName() const
-    {
-        return _generatorName;
-    }
+    const std::string& getGeneratorName() const;
 
     /**
      * Get the generator version.
      * @return The generator version.
      */
-    const std::string& getGeneratorVersion() const
-    {
-        return _generatorVersion;
-    }
+    const std::string& getGeneratorVersion() const;
 
     /**
      * Get the generator file name.
      * @return The generator file name.
      */
-    const std::string& getGeneratorFile() const
-    {
-        return _generatorFile;
-    }
+    const std::string& getGeneratorFile() const;
 
     /**
      * Get the generator checksum.
      * @return The generator checksum.
      */
-    const std::string& getGeneratorChecksum() const
-    {
-        return _generatorChecksum;
-    }
+    const std::string& getGeneratorChecksum() const;
 
     /**
      * Print out the header information.
      * @param[in] os The output stream.
      * @return The same output stream.
      */
-    std::ostream& printOut(std::ostream &os)
-    {
-        os << std::endl << "***** LCDD Header *****" << std::endl;
-
-        os << "detectorName <" << _detectorName << ">" << std::endl;
-        os << "detectorVersion <" << _detectorVersion << ">" << std::endl;
-        os << "detectorUrl <" << _detectorUrl << ">" << std::endl;
-        os << "authorName <" << _authorName << ">" << std::endl;
-        os << "authorEmail <" << _authorEmail << ">" << std::endl;
-        os << "generatorName <" << _generatorName << ">" << std::endl;
-        os << "generatorVersion <" << _generatorVersion << ">" << std::endl;
-        os << "generatorFile <" << _generatorFile << ">" << std::endl;
-        os << "generatorChecksum <" << _generatorChecksum << ">" << std::endl;
-        os << "comment" << std::endl << _comment << std::endl << "end comment" << std::endl;
-
-        os << "***********************" << std::endl << std::endl;
-        return os;
-    }
+    std::ostream& printOut(std::ostream &os);
 
 private:
 
CVSspam 0.2.12


Use REPLY-ALL to reply to list

To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1