Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::model::ShipInfo Struct Reference

#include <ShipInfo.hpp>

Classes

struct  DefaultValues
 
struct  Keys
 
struct  Sections
 

Public Member Functions

 ShipInfo ()
 
 ShipInfo (const ShipInfo &other)
 
 ShipInfo (ShipInfo &&other) noexcept
 
ShipInfooperator= (const ShipInfo &other)
 
ShipInfooperator= (ShipInfo &&other) noexcept
 
 ~ShipInfo ()
 
bool load (const iv::file::xml::node &nodeDataProject)
 Loads ship info from the XML node.
 
bool save (iv::file::xml::node &nodeDataProject) const
 

Public Attributes

std::string classificationSociety
 
std::string hull
 
std::string imoNumber
 
std::string shipName
 
std::string shipOwner
 
std::string shipyard
 

Constructor & Destructor Documentation

◆ ShipInfo() [1/3]

iv::model::ShipInfo::ShipInfo ( )
default

◆ ShipInfo() [2/3]

iv::model::ShipInfo::ShipInfo ( const ShipInfo & other)
default

◆ ShipInfo() [3/3]

iv::model::ShipInfo::ShipInfo ( ShipInfo && other)
noexcept

◆ ~ShipInfo()

iv::model::ShipInfo::~ShipInfo ( )
default

Member Function Documentation

◆ load()

bool iv::model::ShipInfo::load ( const iv::file::xml::node & nodeDataProject)

Loads ship info from the XML node.

Parameters
nodeDataProjectData Project XML node.
Returns
True if the data was loaded successfully, false otherwise.
Note
This load function is pointer-free.

◆ operator=() [1/2]

ShipInfo & iv::model::ShipInfo::operator= ( const ShipInfo & other)

◆ operator=() [2/2]

ShipInfo & iv::model::ShipInfo::operator= ( ShipInfo && other)
noexcept

◆ save()

bool iv::model::ShipInfo::save ( iv::file::xml::node & nodeDataProject) const

Member Data Documentation

◆ classificationSociety

std::string iv::model::ShipInfo::classificationSociety

◆ hull

std::string iv::model::ShipInfo::hull

◆ imoNumber

std::string iv::model::ShipInfo::imoNumber

◆ shipName

std::string iv::model::ShipInfo::shipName

◆ shipOwner

std::string iv::model::ShipInfo::shipOwner

◆ shipyard

std::string iv::model::ShipInfo::shipyard

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