3(2005-06-09)

πŸ“¦
version 2.2.9~rc1 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– CMPIValue β€” CMPIValue class implementation πŸ’–

okay bestie, sit down, hydrate, and let's talk about CMPIValue, a section 3 manual page (yes, the library-functions girlies) πŸ’…


✨ NAME ✨

CMPIValue β€” the CMPIValue class implementation πŸ¦‹


🌸 SYNOPSIS 🌸

πŸŽ€ Public Attributes πŸŽ€

so here's the whole cast of characters, every single one, no cuts πŸ”₯

  • CMPIUint64 uint64 β€” the unsigned 64-bit one πŸ’œ
  • CMPIUint32 uint32 β€” unsigned 32-bit, iconic
  • CMPIUint16 uint16 β€” unsigned 16-bit, small but mighty
  • CMPIUint8 uint8 β€” the littlest unsigned, still slaying
  • CMPISint64 sint64 β€” signed 64-bit, main character energy
  • CMPISint32 sint32 β€” signed 32-bit, present and accounted for
  • CMPISint16 sint16 β€” signed 16-bit, doing its thing
  • CMPISint8 sint8 β€” signed 8-bit, tiny legend
  • CMPIReal64 real64 β€” 64-bit real, float but make it fancy πŸ’«
  • CMPIReal32 real32 β€” 32-bit real, the little sibling
  • CMPIBoolean boolean β€” true or false, no in-between, periodt
  • CMPIChar16 char16 β€” a 16-bit char, living her best life
  • CMPIInstance * inst β€” pointer to a CMPIInstance 🫢
  • CMPIObjectPath * ref β€” pointer to a CMPIObjectPath
  • CMPIArgs * args β€” pointer to CMPIArgs
  • CMPIEnumeration * Enum β€” pointer to CMPIEnumeration
  • CMPIArray * array β€” pointer to CMPIArray
  • CMPIString * string β€” pointer to CMPIString
  • char * chars β€” a raw char *, unfiltered
  • CMPIDateTime * dateTime β€” pointer to CMPIDateTime ⏰
  • CMPIValuePtr dataPtr β€” a CMPIValuePtr
  • CMPISint8 Byte β€” signed 8-bit, aliased as Byte
  • CMPISint16 Short β€” signed 16-bit, aliased as Short
  • CMPISint32 Int β€” signed 32-bit, aliased as Int
  • CMPISint64 Long β€” signed 64-bit, aliased as Long
  • CMPIReal32 Float β€” 32-bit real, aliased as Float
  • CMPIReal64 Double β€” 64-bit real, aliased as Double

πŸ‘‘ METHODS πŸ‘‘

the whole method lineup, signature-for-signature, because we do NOT abbreviate here:

void native_release_CMPIValue (CMPIType type, CMPIValue *val)
CMPIValue native_clone_CMPIValue (CMPIType type, CMPIValue *val,
    CMPIStatus *rc)
char * pathToChars (CMPIObjectPath *cop, CMPIStatus *rc, char *str, int
    uri)
char * value2CharsUri (CMPIType type, CMPIValue *value, int uri)
char * value2Chars (CMPIType type, CMPIValue *value)
char * keytype2Chars (CMPIType type)
CMPIValue * getKeyValueTypePtr (char *type, char *value,
    XtokValueReference *ref, CMPIValue *val, CMPIType *typ)
CMPIType guessType (char *val)
CMPIValue str2CMPIValue (CMPIType type, char *val, XtokValueReference
    *ref)
  • native_release_CMPIValue β€” hands you a void and takes a CMPIType plus a CMPIValue *. the native release one πŸ’…
  • native_clone_CMPIValue β€” takes the same CMPIType and CMPIValue *, plus a CMPIStatus *rc, and gives back a CMPIValue. it's the clone. the native one.
  • pathToChars β€” CMPIObjectPath *cop, CMPIStatus *rc, char *str, int uri walk in, a char * walks out πŸ¦‹
  • value2CharsUri β€” CMPIType type, CMPIValue *value, int uri β†’ char *
  • value2Chars β€” CMPIType type, CMPIValue *value β†’ char * (no uri, she's minimal)
  • keytype2Chars β€” one CMPIType type in, one char * out
  • getKeyValueTypePtr β€” takes char *type, char *value, XtokValueReference *ref, CMPIValue *val, CMPIType *typ and returns a CMPIValue *
  • guessType β€” char *val in, CMPIType out. she guesses. respectfully. πŸ™ˆ
  • str2CMPIValue β€” CMPIType type, char *val, XtokValueReference *ref β†’ CMPIValue

πŸ’œ DESCRIPTION πŸ’œ

so this is the CMPIValue class implementation, and what it represents is the Encapsulated value objects ✨

this is the native CMPIValue implementation, the one as used for remote providers. it reflects the well-defined interface of a regular CMPIValue β€” but plot twist β€” it works independently from the management broker. she doesn't need the broker's approval, she's self-sufficient πŸ’…

it's part of a native broker implementation that simulates CMPI data types rather than interacting with the entities in a full-grown CIMOM. yes, she's doing an impression. yes, it's convincing. no cap.


🌈 SEE ALSO 🌈

  • Common Manageability Programming Interface (CMPI) - OpenGroup 🫢

bestie reminder: this is section 3, so it's the library-functions shelf, not the commands shelf. go read it in good health πŸ’–

and that's the page, mwah 😘 this came to you from the SFCBroker Client Library, sfcc, dated 3(2005-06-09) β€” an absolute vintage icon, she's been serving since 2005 and she has not missed a day πŸŽ€βœ¨πŸ’œ