chrono::utils::ChParserAdams::Report Class Reference

Description

Report containing information about objects parsed from file.

#include <ChParserAdams.h>

Classes

struct  JointInfo
 Information about a joint read in from ADAMS. More...
 

Public Member Functions

void Print () const
 Print information on all modeling elements parsed from adm file.
 
std::shared_ptr< ChBodyAuxRefGetBody (const std::string &name) const
 Get a handle to the body with specified name. More...
 
std::shared_ptr< ChLinkGetJoint (const std::string &name) const
 Get a handle to the joint with specified name. More...
 

Public Attributes

std::unordered_map< std::string, std::shared_ptr< ChBodyAuxRef > > bodies
 list of body information
 
std::unordered_map< std::string, JointInfojoints
 list of joint information
 

Member Function Documentation

◆ GetBody()

std::shared_ptr< ChBodyAuxRef > chrono::utils::ChParserAdams::Report::GetBody ( const std::string &  name) const

Get a handle to the body with specified name.

If none exists, an empty shared pointer is returned. Note that all bodies created by the parser are of type ChBodyAuxRef (i.e., using a non-centroidal reference frame).

◆ GetJoint()

std::shared_ptr< ChLink > chrono::utils::ChParserAdams::Report::GetJoint ( const std::string &  name) const

Get a handle to the joint with specified name.

If none exists, an empty shared pointer is returned. The caller may need to downcast to the appropriate type.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/utils/ChParserAdams.h
  • /builds/uwsbel/chrono/src/chrono/utils/ChParserAdams.cpp