MAIA
bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
iotoml.h
Go to the documentation of this file.
1
// Copyright (C) 2024 The m-AIA AUTHORS
2
//
3
// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4
//
5
// SPDX-License-Identifier: LGPL-3.0-only
6
7
#ifndef IOTOML_H_
8
#define IOTOML_H_
9
10
#include <memory>
11
#include "
INCLUDE/maiatypes.h
"
12
#include "
contexttypes.h
"
13
#include "
enums.h
"
14
15
16
// Forward declaration to avoid header include
17
namespace
maia
{
18
namespace
io {
19
namespace
toml {
20
class
Property;
21
}
22
}
// namespace io
23
}
// namespace maia
24
25
class
IOToml
{
26
public
:
27
assembly
*
readPropertyFile
(
const
MString
& fileName);
28
MInt
solverCount
();
29
MString
rawText
()
const
{
return
m_rawText
; }
30
31
private
:
32
assembly
*
m_assembly
=
nullptr
;
33
MInt
m_noSolvers
= -1;
34
std::pair<propertyIterator, propertyIterator>
m_pair
;
35
propertyMap
*
m_propertyMap
=
nullptr
;
36
propertyMap
*
m_propertyMapLowercase
=
nullptr
;
37
zoneMap
*
m_zoneMap
=
nullptr
;
38
void
buildDefaultZone
();
39
void
makeProperty
(
MProperty
*,
const
maia::io::toml::Property
& prop);
40
MBool
checkZoneConsistency
();
41
MBool
checkPropertyConsistency
();
42
MString
m_rawText
=
""
;
43
};
44
45
#endif
// #ifdef IOTOML_H_
IOToml
Definition:
iotoml.h:25
IOToml::m_propertyMapLowercase
propertyMap * m_propertyMapLowercase
Definition:
iotoml.h:36
IOToml::m_assembly
assembly * m_assembly
Definition:
iotoml.h:32
IOToml::m_pair
std::pair< propertyIterator, propertyIterator > m_pair
Definition:
iotoml.h:34
IOToml::m_rawText
MString m_rawText
Definition:
iotoml.h:42
IOToml::rawText
MString rawText() const
Definition:
iotoml.h:29
IOToml::checkPropertyConsistency
MBool checkPropertyConsistency()
Definition:
iotoml.cpp:278
IOToml::checkZoneConsistency
MBool checkZoneConsistency()
Definition:
iotoml.cpp:313
IOToml::buildDefaultZone
void buildDefaultZone()
Definition:
iotoml.cpp:99
IOToml::readPropertyFile
assembly * readPropertyFile(const MString &fileName)
Definition:
iotoml.cpp:143
IOToml::m_noSolvers
MInt m_noSolvers
Definition:
iotoml.h:33
IOToml::m_zoneMap
zoneMap * m_zoneMap
Definition:
iotoml.h:37
IOToml::makeProperty
void makeProperty(MProperty *, const maia::io::toml::Property &prop)
Definition:
iotoml.cpp:23
IOToml::solverCount
MInt solverCount()
Definition:
iotoml.cpp:20
IOToml::m_propertyMap
propertyMap * m_propertyMap
Definition:
iotoml.h:35
MProperty
Definition:
property.h:13
maia::io::toml::Property
Class that represents a single key-value pair for TOML properties.
Definition:
tomlutils.h:69
contexttypes.h
zoneMap
std::map< MString, MZone * > zoneMap
Definition:
contexttypes.h:17
propertyMap
std::multimap< MString, MProperty * > propertyMap
Definition:
contexttypes.h:15
enums.h
maiatypes.h
MInt
int32_t MInt
Definition:
maiatypes.h:62
MString
std::basic_string< char > MString
Definition:
maiatypes.h:55
MBool
bool MBool
Definition:
maiatypes.h:58
maia
Namespace for auxiliary functions/classes.
Definition:
acaobserverdatacollector.h:76
a
Definition:
contexttypes.h:19
home
gitlab-runner
scratch
builds
oxpnswJ6
1
aia
m-AIA
m-AIA
src
IO
iotoml.h
Generated on Sun Jun 16 2024 23:44:54 for MAIA by
1.9.5