Gaudi Framework, version v23r4

Home   Generated: Mon Sep 17 2012

PragmaOptions.h

Go to the documentation of this file.
00001 // $Id:$
00002 //$Id:$
00003 // ===========================================================================
00004 #ifndef JOBOPTIONSVC_PRAGMAOPTIONS_H_
00005 #define JOBOPTIONSVC_PRAGMAOPTIONS_H_
00006 // ===========================================================================
00007 // Include files
00008 // ===========================================================================
00009 // STD & STL
00010 // ===========================================================================
00011 // ===========================================================================
00012 // Boost
00013 // ===========================================================================
00014 // ===========================================================================
00015 // Gaudi
00016 // ===========================================================================
00017 // ===========================================================================
00018 // Local
00019 // ===========================================================================
00020 // ===========================================================================
00021 
00022 namespace  Gaudi { namespace Parsers {
00023 // ===========================================================================
00024 class PragmaOptions {
00025  public:
00026   PragmaOptions(): m_is_print(true), m_is_print_options(false),
00027     m_is_print_tree(false){}
00028 
00029   bool is_print() const { return m_is_print;}
00030   void setIsPrint(bool is_print) { m_is_print = is_print; }
00031 
00032   bool is_print_options() const { return m_is_print_options;}
00033   void setIsPrintOptions(bool is_print_options)
00034   { m_is_print_options = is_print_options; }
00035 
00036   bool is_print_tree() const { return m_is_print_tree;}
00037   void setIsPrintTree(bool is_print_tree)
00038    { m_is_print_tree = is_print_tree; }
00039 
00040   const std::string& dumpFile() const { return m_dump_file;}
00041   void setDumpFile(const std::string& dump_file) {
00042     m_dump_file = dump_file;
00043   }
00044 
00045   bool IsPrintOptions() { return is_print_options() && is_print();}
00046   bool IsPrintTree() { return is_print_tree() && is_print();}
00047   bool HasDumpFile() { return !m_dump_file.empty();}
00048 
00049  private:
00050   bool m_is_print;
00051   bool m_is_print_options;
00052   bool m_is_print_tree;
00053   std::string m_dump_file;
00054 };
00055 // ===========================================================================
00056 } /*  Gaudi */ }  /* Parsers */
00057 // ===========================================================================
00058 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Mon Sep 17 2012 13:49:29 for Gaudi Framework, version v23r4 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004