4#ifndef lethe_shape_parsing_h
5#define lethe_shape_parsing_h
52 std::shared_ptr<Shape<dim>>
54 const std::string &shape_arguments_str,
55 const Point<dim> &position,
56 const Tensor<1, 3> &orientation);
66 std::shared_ptr<Shape<dim>>
68 const std::vector<double> &shape_arguments,
69 const Point<dim> &position,
70 const Tensor<1, 3> &orientation);
81 std::shared_ptr<Shape<dim>>
83 const std::string &file_name,
84 const Point<dim> &position,
85 const Tensor<1, 3> &orientation);
ShapeType
enum class that associate an integer index tp each type of shape. The enumerator names are the values...
std::vector< std::pair< std::string, EnumType > > DeprecatedEnumNames
Deprecated strings of an enum parameter, each paired with the enumerator it stands for....
Shape< dim >::ShapeType string_to_shape_type(const std::string &type)
Return the shape type designated by a string, which is either the name of a Shape<dim>::ShapeType enu...
std::shared_ptr< Shape< dim > > initialize_shape_from_vector(const std::string &type, const std::vector< double > &shape_arguments, const Point< dim > &position, const Tensor< 1, 3 > &orientation)
const DeprecatedEnumNames< typename Shape< dim >::ShapeType > & deprecated_shape_type_names()
Return the deprecated strings of the shape types, which remain accepted in parameter files,...
std::shared_ptr< Shape< dim > > initialize_shape(const std::string &type, const std::string &shape_arguments_str, const Point< dim > &position, const Tensor< 1, 3 > &orientation)
std::shared_ptr< Shape< dim > > initialize_shape_from_file(const std::string &type, const std::string &file_name, const Point< dim > &position, const Tensor< 1, 3 > &orientation)