GEOS
GroupContext.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2016-2024 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2024 TotalEnergies
7  * Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University
8  * Copyright (c) 2023-2024 Chevron
9  * Copyright (c) 2019- GEOS/GEOSX Contributors
10  * All rights reserved
11  *
12  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
13  * ------------------------------------------------------------------------------------------------------------
14  */
15 
20 #ifndef GEOS_DATAREPOSITORY_GROUPCONTEXT_HPP_
21 #define GEOS_DATAREPOSITORY_GROUPCONTEXT_HPP_
22 
23 #include "DataContext.hpp"
24 #include "Group.hpp"
25 
26 namespace geos
27 {
28 namespace dataRepository
29 {
30 
31 
38 class GroupContext : public DataContext
39 {
40 public:
41 
46  GroupContext( Group & group );
47 
51  Group const & getGroup() const;
52 
53 protected:
54 
60  GroupContext( Group & group, string const & objectName );
61 
64 
65 private:
66 
70  string toString() const override;
74  ToStringInfo getToStringInfo() const override;
75 };
76 
77 
78 } /* namespace dataRepository */
79 } /* namespace geos */
80 
81 #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