GEOSX
GroupContext.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2018-2020 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University
7  * Copyright (c) 2018-2020 TotalEnergies
8  * Copyright (c) 2019- GEOSX Contributors
9  * All rights reserved
10  *
11  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
12  * ------------------------------------------------------------------------------------------------------------
13  */
14 
19 #ifndef GEOS_DATAREPOSITORY_GROUPCONTEXT_HPP_
20 #define GEOS_DATAREPOSITORY_GROUPCONTEXT_HPP_
21 
22 #include "DataContext.hpp"
23 #include "Group.hpp"
24 
25 namespace geos
26 {
27 namespace dataRepository
28 {
29 
30 
37 class GroupContext : public DataContext
38 {
39 public:
40 
45  GroupContext( Group & group );
46 
50  Group const & getGroup() const;
51 
52 protected:
53 
59  GroupContext( Group & group, string const & objectName );
60 
63 
64 private:
65 
69  string toString() const override;
73  ToStringInfo getToStringInfo() const override;
74 };
75 
76 
77 } /* namespace dataRepository */
78 } /* namespace geos */
79 
80 #endif /* GEOS_DATAREPOSITORY_GROUPCONTEXT_HPP_ */
GroupContext(Group &group)
Construct a new GroupContext object.
Group & m_group
The reference to the Group related to this GroupContext.
GroupContext(Group &group, string const &objectName)
Construct a new GroupContext object.
Group const & getGroup() const