VistaIOReadObjects(3)

✨ VistaIOReadObjects β€” the manual page, but make it cute ✨

okay bestie, this is VistaIOReadObjects(3) from the Library Functions Manual and it's literally about reading a whole lil squad of objects out of a stream πŸŽ€


🌸 NAME 🌸

VistaIOReadObjects β€” read a series of objects from a stream πŸ¦‹


✨ SYNOPSIS ✨

#include <stdio>
#include <vistaio.h>

int VistaIOReadObjects (file, repn, attributes, objects)
       FILE *file;
       VistaIORepnKind repn;
       VistaIOAttrList *attributes;
       VistaIOPointer (*objects)[];

πŸ’… ARGUMENTS πŸ’…

  • file β€” the open stream you wanna read the objects from. it's already open, that's your job, not hers πŸ’–
  • repn β€” the kind of objects you're hunting for. yes it's giving very "what's your type" energy πŸ‘‘
  • attributes β€” this one gives back a list of attributes that got read from the stream πŸŽ€
  • edge_sets β€” returns a vector of pointers to the objects that got read ✨

🌈 DESCRIPTION 🌈

So VistaIOReadObjects reads a Vista data file from an open stream, collects all the top-level objects of the type you specified with repn, and hands those objects back to you separately from everything else chillin' in the file. periodt πŸ’…

It's used by VistaIOReadImages, for example, to read and collect images β€” you just pass VistaIOImageRepn for the repn argument and it ate πŸ”₯


πŸ’œ RETURN VALUES πŸ’œ

VistaIOReadObjects returns the number of objects obtained, or 0 if an error shows up 😭 A vector of the objects gets allocated and returned via objects. Any other objects hanging out in the file come back as an attribute list via attributes. no cap 🫢


πŸ¦‹ SEE ALSO πŸ¦‹


⭐ DIAGNOSTICS ⭐

besides the following, any of the diagnostics produced by VistaIOReadFile may show up πŸ™ˆ

  • No type objects present in stream.'' `` β€” no objects of the type specified by repn were encountered in the stream. it's giving empty 😭

πŸ‘‘ AUTHOR πŸ‘‘

Art Pope <pope@cs.ubc.ca> πŸ’–

Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com> 🌸


and that's a wrap bestie πŸŽ€ this page is from VistaIO Version 1.2.14, dated 24 April 1993 β€” vintage but still iconic, fr fr ✨πŸ’