12#ifndef WSFCOVERAGEASSET_HPP
13#define WSFCOVERAGEASSET_HPP
39 GridAsset(
const std::string& aPlatformName,
PointId aPointId,
const std::string& aDeviceName)
40 : mPlatformName{aPlatformName}
42 , mDeviceName{aDeviceName}
59 void SetPlatformName(
const std::string& aPlatformName) { mPlatformName = aPlatformName; }
65 void SetDeviceName(
const std::string& aDeviceName) { mDeviceName = aDeviceName; }
68 std::string mPlatformName;
70 std::string mDeviceName;
83 FreeAsset(
const std::string& aPlatformName,
const std::string& aDeviceName)
84 : mPlatform{aPlatformName}
85 , mDevice{aDeviceName}
96 void SetPlatformName(
const std::string& aPlatformName) { mPlatform = aPlatformName; }
99 void SetDeviceName(
const std::string& aDeviceName) { mDevice = aDeviceName; }
102 std::string mPlatform;
114struct less<
wsf::coverage::GridAsset>
127struct less<
wsf::coverage::FreeAsset>
Definition WsfCoverageAsset.hpp:81
const std::string & GetPlatformName() const
Get the name of the platform to which this free asset refers.
Definition WsfCoverageAsset.hpp:90
void SetPlatformName(const std::string &aPlatformName)
Set the name of the platform to which this free asset refers.
Definition WsfCoverageAsset.hpp:96
const std::string & GetDeviceName() const
Get the name of the device to which this free asset refers.
Definition WsfCoverageAsset.hpp:93
FreeAsset(const std::string &aPlatformName, const std::string &aDeviceName)
Definition WsfCoverageAsset.hpp:83
void SetDeviceName(const std::string &aDeviceName)
Set the name of the device to which this free asset refers.
Definition WsfCoverageAsset.hpp:99
Definition WsfCoverageAsset.hpp:37
void SetDeviceName(const std::string &aDeviceName)
Set the name of the device to which this grid asset refers.
Definition WsfCoverageAsset.hpp:65
PointId GetPointId() const
Get the ID of the point in the grid to which this grid asset refers.
Definition WsfCoverageAsset.hpp:47
std::string GetPlatformName() const
Return the platform name corresponding to this grid asset.
Definition WsfCoverageAsset.hpp:53
const std::string & GetDeviceName() const
Get the name of the device to which this grid asset refers.
Definition WsfCoverageAsset.hpp:50
void SetPlatformName(const std::string &aPlatformName)
Set the name of the coverage object to which this grid asset refers.
Definition WsfCoverageAsset.hpp:59
bool IsValid() const
Return if this grid asset refers to a valid grid point.
Definition WsfCoverageAsset.hpp:56
void SetPointId(PointId aPointId)
Set the ID of the point in the grid to which this grid asset refers.
Definition WsfCoverageAsset.hpp:62
GridAsset(const std::string &aPlatformName, PointId aPointId, const std::string &aDeviceName)
Definition WsfCoverageAsset.hpp:39
Template specialization for wsf::comm::Address. Allows usage of Address in std::unordered_map/set.
Definition WsfCommAddress.hpp:185
Definition WsfCoverage.cpp:35
std::uint64_t PointId
Definition WsfCoverageGridPoint.hpp:33
constexpr const char * cUNIVERSAL_NON_ASSET_CATEGORY
Definition WsfCoverageAsset.hpp:25
constexpr const char * cUNIVERSAL_GRID_ASSET_CATEGORY
Definition WsfCoverageAsset.hpp:26
constexpr PointId cINVALID_POINT_ID
Zero is used everywhere to indicate an invalid point Id.
Definition WsfCoverageGridPoint.hpp:36
constexpr const char * cNULL_COVERAGE_DEVICE_NAME
Definition WsfCoverageAsset.hpp:24
constexpr const char * cUNIVERSAL_FREE_ASSET_CATEGORY
Definition WsfCoverageAsset.hpp:27
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
bool operator()(const wsf::coverage::FreeAsset &aLHS, const wsf::coverage::FreeAsset &aRHS) const
Definition WsfCoverageAsset.hpp:129
bool operator()(const wsf::coverage::GridAsset &aLHS, const wsf::coverage::GridAsset &aRHS) const
Definition WsfCoverageAsset.hpp:116