00001 #ifndef ASG_TOOLS__UNIT_TEST_TOOL1A_H 00002 #define ASG_TOOLS__UNIT_TEST_TOOL1A_H 00003 00004 // Copyright Iowa State University 2016. 00005 // Author: Nils Krumnack 00006 // Distributed under the Boost Software License, Version 1.0. 00007 // (See accompanying file LICENSE_1_0.txt or copy at 00008 // http://www.boost.org/LICENSE_1_0.txt) 00009 00010 // Please feel free to contact me (nils.erik.krumnack@cern.ch) for bug 00011 // reports, feature suggestions, praise and complaints. 00012 00013 00014 #include <AsgTools/AsgTool.h> 00015 #include <AsgExampleTools/IUnitTestTool1.h> 00016 00017 namespace asg 00018 { 00023 00024 struct UnitTestTool1A : virtual public IUnitTestTool1, 00025 public AsgTool 00026 { 00027 ASG_TOOL_CLASS (UnitTestTool1A, IUnitTestTool1) 00028 00029 00030 public: 00031 UnitTestTool1A (const std::string& val_name); 00032 00033 public: 00034 StatusCode initialize () override; 00035 00036 public: 00037 virtual std::string getPropertyString () const override; 00038 00039 public: 00040 virtual int getPropertyInt () const override; 00041 00042 public: 00043 virtual void setPropertyInt (int val_property) override; 00044 00045 public: 00046 virtual bool isInitialized () const override; 00047 00049 public: 00050 bool m_isInitialized = false; 00051 00053 public: 00054 std::string m_propertyString; 00055 00057 public: 00058 int m_propertyInt = -7; 00059 00061 public: 00062 bool m_initializeFail = false; 00063 }; 00064 } 00065 00066 #endif