sc::StringKeyVal(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

okay bestie, welcome to the sc::StringKeyVal(3) page from the MPQC manual. This is your little group-chat briefing on StringKeyVal, and it's lowkey important: it's the base class for KeyVal implementations that store all values in a string format. Periodt. πŸ’…

πŸŽ€ NAME πŸŽ€

sc::StringKeyVal β€” StringKeyVal is a base class for KeyVal implementations that store all values in a string format. That's the name section, and it ate. ✨

✨ SYNOPSIS ✨

#include <keyval.h>
  • Inherits sc::KeyVal.
  • Inherited by sc::ParsedKeyVal.

🫢 Public Member Functions 🫢

  • virtual const char * stringrep (const char *key)=0 β€” Returns the string representation of the value assigned to key.
  • virtual const char * classname (const char *) β€” Returns the name of the exact class of the object at the keyword.
  • virtual const char * truekeyword (const char *) β€” Returns a string which is the actual keyword if some sort of variable substitution takes place (needed to make multiple references to the same object work in input files).

πŸ’€ Debugging. πŸ’€

See the parent class documentation for descriptions of these functions. Ngl, parent class has the lore. πŸ’–

  • virtual void errortrace (std::ostream &fp=ExEnv::err0()) β€” Write a message to fp describing the error.
  • virtual void dump (std::ostream &fp=ExEnv::err0()) β€” Write a message to fp describing the error.

🧚 Protected Member Functions 🧚

  • int key_exists (const char *) β€” Ultimately called by exists.
  • Ref< KeyValValue > key_value (const char *, const KeyValValue &def) β€” Ultimately called by value.

🌈 Additional Inherited Members 🌈

Nothing extra is listed under this heading on this page, bestie. That's just how it is. πŸ’…

πŸ’– Detailed Description πŸ’–

StringKeyVal is a base class for KeyVal implementations that store all values in a string format. Simple as that, no cap.

These are converted to other data types through KeyValValue. So the string vibe gets translated into whatever type you actually need. ✨

πŸ‘‘ Member Function Documentation πŸ‘‘

πŸ¦‹ virtual const char* sc::StringKeyVal::classname (const char *) [virtual] πŸ¦‹

Returns the name of the exact class of the object at the keyword. If no classname is assigned then 0 is returned. Important little detail: that's a literal zero. 🫢

Reimplemented in sc::ParsedKeyVal.

🌸 Author 🌸

Generated automatically by Doxygen for MPQC from the source code. The robots did this one, but we're still serving looks. πŸ€–πŸ’…

mwah πŸ’‹ β€” that's the whole page from MPQC, Version 2.3.1, dated Sun Oct 4 2020. Byeee bestie, go be iconic with your string keyvals! πŸ’–βœ¨

πŸ“¦ where this page comes from