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
17namespace maia {
18namespace io {
19namespace toml {
20class Property;
21}
22} // namespace io
23} // namespace maia
24
25class IOToml {
26 public:
27 assembly* readPropertyFile(const MString& fileName);
29 MString rawText() const { return m_rawText; }
30
31 private:
32 assembly* m_assembly = nullptr;
34 std::pair<propertyIterator, propertyIterator> m_pair;
37 zoneMap* m_zoneMap = nullptr;
38 void buildDefaultZone();
43};
44
45#endif // #ifdef IOTOML_H_
Definition: iotoml.h:25
propertyMap * m_propertyMapLowercase
Definition: iotoml.h:36
assembly * m_assembly
Definition: iotoml.h:32
std::pair< propertyIterator, propertyIterator > m_pair
Definition: iotoml.h:34
MString m_rawText
Definition: iotoml.h:42
MString rawText() const
Definition: iotoml.h:29
MBool checkPropertyConsistency()
Definition: iotoml.cpp:278
MBool checkZoneConsistency()
Definition: iotoml.cpp:313
void buildDefaultZone()
Definition: iotoml.cpp:99
assembly * readPropertyFile(const MString &fileName)
Definition: iotoml.cpp:143
MInt m_noSolvers
Definition: iotoml.h:33
zoneMap * m_zoneMap
Definition: iotoml.h:37
void makeProperty(MProperty *, const maia::io::toml::Property &prop)
Definition: iotoml.cpp:23
MInt solverCount()
Definition: iotoml.cpp:20
propertyMap * m_propertyMap
Definition: iotoml.h:35
Class that represents a single key-value pair for TOML properties.
Definition: tomlutils.h:69
std::map< MString, MZone * > zoneMap
Definition: contexttypes.h:17
std::multimap< MString, MProperty * > propertyMap
Definition: contexttypes.h:15
int32_t MInt
Definition: maiatypes.h:62
std::basic_string< char > MString
Definition: maiatypes.h:55
bool MBool
Definition: maiatypes.h:58
Namespace for auxiliary functions/classes.
Definition: contexttypes.h:19