sc::KeyValValueString(3)
π sc::KeyValValueString π
Okay bestie, this is the MPQC manual page for sc::KeyValValueString(3) β and yes, it's giving very specific C++ class energy. No cap.
πΈ NAME πΈ
sc::KeyValValueString β that's the class. Iconic. Periodt.
β¨ SYNOPSIS β¨
Inherits sc::KeyValValue.
Lowkey the whole inheritance tea is right there.
π Public Types π
enum Storage { Copy, Steal, Use }
The Storage enum has exactly three values: Copy, Steal, and Use. That's the whole list on this page β no extra lore, bestie.
π Public Member Functions π
Here's the exact function menu, character for character:
KeyValValueString (const char *, KeyValValueString::Storage
s=KeyValValueString::Use)
KeyValValueString (char *, KeyValValueString::Storage
s=KeyValValueString::Use)
KeyValValueString (const KeyValValueString &)
KeyValValue::KeyValValueError doublevalue (double &) const
KeyValValue::KeyValValueError booleanvalue (int &) const
KeyValValue::KeyValValueError floatvalue (float &) const
KeyValValue::KeyValValueError charvalue (char &) const
KeyValValue::KeyValValueError intvalue (int &) const
KeyValValue::KeyValValueError sizevalue (size_t &) const
KeyValValue::KeyValValueError pcharvalue (const char *&) const
KeyValValue::KeyValValueError stringvalue (std::string &) const
void print (std::ostream &o=ExEnv::out0()) const
So you've got two constructors taking const char * and char *, both with a KeyValValueString::Storage s that defaults to KeyValValueString::Use, plus the copy constructor KeyValValueString (const KeyValValueString &).
Then come the value getters β doublevalue (double &), booleanvalue (int &), floatvalue (float &), charvalue (char &), intvalue (int &), sizevalue (size_t &), pcharvalue (const char *&), and stringvalue (std::string &) β all const and all returning KeyValValue::KeyValValueError.
And finally there's print (std::ostream &o=ExEnv::out0()) const, which returns void. Obsessed with the default argument, honestly.
π¦ Additional Inherited Members π¦
Yep, this heading exists. The original page doesn't list any extra items under it, so don't let FOMO hit β the inherited stuff is from sc::KeyValValue, per the SYNOPSIS. That's the whole vibe here.
π Author π
Generated automatically by Doxygen for MPQC from the source code.
MPQC version 2.3.1, dated Sun Oct 4 2020 β that's the cute little version/date footer tea, bestie. Doxygen auto-generated this from the source code. Mwah ππ
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms