icedb  version 0.5.1
Snow particle scattering database API
Public Member Functions | Public Attributes | List of all members
icedb::Examples::Shapes::ShapeDataBasic Struct Reference

#include <shape.hpp>

Collaboration diagram for icedb::Examples::Shapes::ShapeDataBasic:
Collaboration graph
[legend]

Public Member Functions

icedb::Shapes::Shape::Shape_Type toShape (const std::string &name, std::shared_ptr< H5::Group >) const
 Make a new shape under the group. More...
 
icedb::Shapes::Shape::Shape_Type toShape (const std::string &name, std::shared_ptr< H5::Group >) const
 Make a new shape under the group. More...
 
icedb::Shapes::Shape::Shape_Type toShape (const std::string &name, std::shared_ptr< H5::Group >) const
 Make a new shape under the group. More...
 

Public Attributes

ShapeRequiredData required
 
ShapeCommonOptionalData optional
 

Detailed Description

Definition at line 42 of file shape.hpp.

Member Function Documentation

◆ toShape() [1/3]

icedb::Shapes::Shape::Shape_Type icedb::Examples::Shapes::ShapeDataBasic::toShape ( const std::string &  name,
std::shared_ptr< H5::Group >  grp 
) const

Make a new shape under the group.

Definition at line 55 of file shapeIOtext.cpp.

References icedb::Shapes::Shape::createShape().

Referenced by main().

57  {
59  required.apply(nreq);
61  optional.apply(nopt);
62  return icedb::Shapes::Shape::createShape(grp, name, &nreq, &nopt);
63  }
void apply(icedb::Shapes::NewShapeCommonOptionalProperties &) const
Definition: shapeIOtext.cpp:21
static Shape_Type createShape(Groups::Group &grpshp, const std::string &uid, gsl::not_null< const NewShapeRequiredProperties *> required, const NewShapeCommonOptionalProperties *optional=nullptr)
Create a new shape.
Definition: Shapes.cpp:231
Strucure containing a list of all of the required data needed to create a new shape in the database...
Definition: shape.hpp:12
void apply(icedb::Shapes::NewShapeRequiredProperties &) const
Definition: shapeIOtext.cpp:13
Structure containing a list of all of the common optional data for creating a new shape in the databa...
Definition: shape.hpp:60
ShapeCommonOptionalData optional
Definition: shape.hpp:44
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toShape() [2/3]

icedb::Shapes::Shape::Shape_Type icedb::Examples::Shapes::ShapeDataBasic::toShape ( const std::string &  name,
std::shared_ptr< H5::Group >   
) const

Make a new shape under the group.

◆ toShape() [3/3]

icedb::Shapes::Shape::Shape_Type icedb::Examples::Shapes::ShapeDataBasic::toShape ( const std::string &  name,
std::shared_ptr< H5::Group >   
) const

Make a new shape under the group.

Member Data Documentation

◆ optional

ShapeCommonOptionalData icedb::Examples::Shapes::ShapeDataBasic::optional

◆ required

ShapeRequiredData icedb::Examples::Shapes::ShapeDataBasic::required

The documentation for this struct was generated from the following files: