MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / GetReal

Method GetReal

utilities/olcUTIL_DataFile.h:92–95  ·  view source on GitHub ↗

Retrieves the Real Value of a Property (for a given index) or 0.0

Source from the content-addressed store, hash-verified

90
91 // Retrieves the Real Value of a Property (for a given index) or 0.0
92 inline const double GetReal(const size_t nItem = 0) const
93 {
94 return std::atof(GetString(nItem).c_str());
95 }
96
97 // Sets the Real Value of a Property (for a given index)
98 inline void SetReal(const double d, const size_t nItem = 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected