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.h"
13 
14 #include <string>
15 
16 namespace Catch {
17 
18     struct SectionInfo {
19         SectionInfo
20             (   SourceLineInfo const& _lineInfo,
21                 std::string const& _name );
22 
23         // Deprecated
SectionInfoSectionInfo24         SectionInfo
25             (   SourceLineInfo const& _lineInfo,
26                 std::string const& _name,
27                 std::string const& ) : SectionInfo( _lineInfo, _name ) {}
28 
29         std::string name;
30         std::string description; // !Deprecated: this will always be empty
31         SourceLineInfo lineInfo;
32     };
33 
34     struct SectionEndInfo {
35         SectionInfo sectionInfo;
36         Counts prevAssertions;
37         double durationInSeconds;
38     };
39 
40 } // end namespace Catch
41 
42 #endif // TWOBLUECUBES_CATCH_SECTION_INFO_H_INCLUDED
43