1 /* 2 * Created by Phil on 03/11/2010. 3 * Copyright 2010 Two Blue Cubes Ltd. All rights reserved. 4 * 5 * Distributed under the Boost Software License, Version 1.0. (See accompanying 6 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 7 */ 8 #ifndef TWOBLUECUBES_CATCH_SECTION_INFO_H_INCLUDED 9 #define TWOBLUECUBES_CATCH_SECTION_INFO_H_INCLUDED 10 11 #include "catch_common.h" 12 #include "catch_totals.hpp" 13 14 #include <string> 15 16 namespace Catch { 17 18 struct SectionInfo { 19 SectionInfo 20 ( SourceLineInfo const& _lineInfo, 21 std::string const& _name, 22 std::string const& _description = std::string() ); 23 24 std::string name; 25 std::string description; 26 SourceLineInfo lineInfo; 27 }; 28 29 struct SectionEndInfo { SectionEndInfoSectionEndInfo30 SectionEndInfo( SectionInfo const& _sectionInfo, Counts const& _prevAssertions, double _durationInSeconds ) 31 : sectionInfo( _sectionInfo ), prevAssertions( _prevAssertions ), durationInSeconds( _durationInSeconds ) 32 {} 33 34 SectionInfo sectionInfo; 35 Counts prevAssertions; 36 double durationInSeconds; 37 }; 38 39 } // end namespace Catch 40 41 #endif // TWOBLUECUBES_CATCH_SECTION_INFO_H_INCLUDED 42