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

Method GetString

utilities/olcUTIL_DataFile.h:83–89  ·  view source on GitHub ↗

Retrieves the String Value of a Property (for a given index) or ""

Source from the content-addressed store, hash-verified

81
82 // Retrieves the String Value of a Property (for a given index) or ""
83 inline const std::string GetString(const size_t nItem = 0) const
84 {
85 if (nItem >= m_vContent.size())
86 return "";
87 else
88 return m_vContent[nItem];
89 }
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

Callers 1

WriteMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected