SOSFULONG(3iv)

πŸ’– NAME πŸ’–

okay so bestie, SoSFULong β€” it's literally just a synonym for SoSFUInt32. that's it. that's the whole name section. iconic of her honestly πŸ’…


🌸 INHERITS FROM 🌸

the family tree goes like this, no cap:

  • SoField β†’ SoSField β†’ SoSFULong

so she's got all the ancestors' genes, for better or worse 🧬✨


✨ SYNOPSIS ✨

first things first, you gotta let her in the door:

#include <Inventor/fields/SoSFUInt32.h>

yes, bestie, you include the SoSFUInt32.h header β€” read the DESCRIPTION before you come for me 😭

Methods from class SoSField

  • static SoType getClassTypeId()

Methods from class SoField

  • void setIgnored(SbBool ignore)
  • SbBool isIgnored() const
  • SbBool isDefault() const
  • virtual SoType getTypeId() const
  • virtual SbBool isOfType(SoType type) const
  • SbBool set(const char *valueString)
  • void get(SbString &valueString)
  • int operator ==(const SoField &f) const
  • int operator !=(const SoField &f) const
  • void touch()
  • SbBool connectFrom(SoField *fromField)
  • SbBool connectFrom(SoEngineOutput *fromEngine)
  • void disconnect()
  • SbBool isConnected() const
  • SbBool isConnectedFromField() const
  • SbBool getConnectedField(SoField *&writingField) const
  • SbBool isConnectedFromEngine() const
  • SbBool getConnectedEngine(SoEngineOutput *&engineOutput) const
  • void enableConnection(SbBool flag)
  • SbBool isConnectionEnabled() const
  • int getForwardConnections(SoFieldList &list) const
  • SoFieldContainer * getContainer() const

look at that list. she's carrying the whole friend group on her back fr fr 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, and it's giving legacy code:

This class is obsolete, and is provided for backwards compatibility only. πŸ’€

you should be using the shiny new SoSFUInt32 class instead. like, the new one ate, periodt.

and here's the dramatic part β€” the actual warning, don't skip it:

If you compile your code with -DIV_STRICT, #including the SoSFULong.h header file will cause a compile-time error.

so if you flip that strict switch and still try to bring SoSFULong.h to the party, the compiler will straight up slam the door in your face 😭 not a warning, not a vibe check β€” an error. respect the boundary, bestie 🌈

ngl the whole point is: this class is a historical artifact kept around so your old code doesn't break. new code? use SoSFUInt32. iykyk ✨


that's the whole page, and yes the footer is just SoSFULong(3IV)() β€” same title, section 3IV, and no date on it at all, which is very "she left the group chat in 2003 and never came back" of her πŸ™ˆ mwah, love u, go write some SoSFUInt32 πŸ’–πŸŽ€πŸ¦‹