Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::tanks::Tank Class Reference

#include <Tank.hpp>

Collaboration diagram for iv::tanks::Tank:
[legend]

Classes

struct  DefaultValues
 
struct  Keys
 
struct  Sections
 
struct  Sounding
 

Public Member Functions

 Tank ()
 
void update (const Tank &other)
 
bool load (file::xml::node &node, const std::string &pathMimics)
 
bool save (file::xml::node &node) const
 
bool editTankParams (iv::tanks::eTankContentsType contentsType, double density)
 
void addSensorChannel (std::weak_ptr< channels::AbstractChannel > channel, iv::tanks::eSensorType sensorType, double atmosphericBarOpt)
 
void processTank (iv::types::tankTrim trim)
 Process Tank calculating it's content height and volume.
 
std::vector< std::string > getSensorsChannelsIds () const
 

Public Attributes

iv::tanks::TankChannels m_tankChannel
 
std::string m_name
 
std::string m_description
 
std::string m_filePath
 
iv::tanks::TankProperties m_properties
 
iv::tanks::eTankContentsType m_contentsType
 
double m_densityDefault
 
bool m_isCargoTank
 
Sounding m_sounding
 
iv::tanks::TankCalibrationData m_calibrationData
 

Private Member Functions

void calculateSoundingData ()
 

Constructor & Destructor Documentation

◆ Tank()

iv::tanks::Tank::Tank ( )

Member Function Documentation

◆ addSensorChannel()

void iv::tanks::Tank::addSensorChannel ( std::weak_ptr< channels::AbstractChannel > channel,
iv::tanks::eSensorType sensorType,
double atmosphericBarOpt )

◆ calculateSoundingData()

void iv::tanks::Tank::calculateSoundingData ( )
private

◆ editTankParams()

bool iv::tanks::Tank::editTankParams ( iv::tanks::eTankContentsType contentsType,
double density )

◆ getSensorsChannelsIds()

std::vector< std::string > iv::tanks::Tank::getSensorsChannelsIds ( ) const
nodiscard

◆ load()

bool iv::tanks::Tank::load ( file::xml::node & node,
const std::string & pathMimics )

◆ processTank()

void iv::tanks::Tank::processTank ( iv::types::tankTrim trim)

Process Tank calculating it's content height and volume.

Parameters
trim

◆ save()

bool iv::tanks::Tank::save ( file::xml::node & node) const

◆ update()

void iv::tanks::Tank::update ( const Tank & other)

Member Data Documentation

◆ m_calibrationData

iv::tanks::TankCalibrationData iv::tanks::Tank::m_calibrationData

◆ m_contentsType

iv::tanks::eTankContentsType iv::tanks::Tank::m_contentsType

◆ m_densityDefault

double iv::tanks::Tank::m_densityDefault

◆ m_description

std::string iv::tanks::Tank::m_description

◆ m_filePath

std::string iv::tanks::Tank::m_filePath

◆ m_isCargoTank

bool iv::tanks::Tank::m_isCargoTank

◆ m_name

std::string iv::tanks::Tank::m_name

◆ m_properties

iv::tanks::TankProperties iv::tanks::Tank::m_properties

◆ m_sounding

Sounding iv::tanks::Tank::m_sounding

◆ m_tankChannel

iv::tanks::TankChannels iv::tanks::Tank::m_tankChannel

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