feat: add domain model foundation
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include "fesa/core/ModelTypes.hpp"
|
||||
|
||||
#include <array>
|
||||
|
||||
namespace fesa::core {
|
||||
|
||||
enum class ElementType {
|
||||
Mitc4
|
||||
};
|
||||
|
||||
class ElementDefinition {
|
||||
public:
|
||||
ElementDefinition(
|
||||
ElementId id,
|
||||
ElementType type,
|
||||
std::array<NodeId, 4> connectivity,
|
||||
PropertyId property_id);
|
||||
|
||||
ElementId id() const noexcept;
|
||||
ElementType type() const noexcept;
|
||||
const std::array<NodeId, 4>& connectivity() const noexcept;
|
||||
PropertyId propertyId() const noexcept;
|
||||
|
||||
private:
|
||||
ElementId id_;
|
||||
ElementType type_;
|
||||
std::array<NodeId, 4> connectivity_;
|
||||
PropertyId property_id_;
|
||||
};
|
||||
|
||||
} // namespace fesa::core
|
||||
Reference in New Issue
Block a user