Helios++
Helios software for LiDAR simulations
Asset Class Reference

Base class for all assets. More...

#include <Asset.h>

Inheritance diagram for Asset:
Collaboration diagram for Asset:

Public Member Functions

std::string getLocationString ()
 Obtain asset location string. More...
 
virtual bool isEgg () const
 Check whether the asset is an EggAsset or not. More...
 

Public Attributes

std::string id = ""
 Asset identifier.
 
std::string name = "Unnamed Asset"
 Asset name.
 
std::string sourceFilePath = ""
 Path to asset file.
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 Serialize an Asset to a stream of bytes. More...
 

Friends

class boost::serialization::access
 

Detailed Description

Base class for all assets.

Member Function Documentation

◆ getLocationString()

std::string Asset::getLocationString ( )
inline

Obtain asset location string.

Returns
Asset location string

◆ isEgg()

virtual bool Asset::isEgg ( ) const
inlinevirtual

Check whether the asset is an EggAsset or not.

Returns
True if the asset is an EggAsset, false otherwise
See also
EggAsset

Reimplemented in InterpolatedMovingPlatformEgg, EggAsset< FullClass, HatchArgs >, and EggAsset< InterpolatedMovingPlatform, SimulationStepLoop & >.

◆ serialize()

template<class Archive >
void Asset::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprivate

Serialize an Asset to a stream of bytes.

Template Parameters
ArchiveType of rendering
Parameters
arSpecific rendering for the stream of bytes
versionVersion number for the Asset

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