CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
ClassSet Struct Reference

#include <objclass.h>

Data Fields

ObjClassInfoentries []
 sorted by name for binary search
 

Detailed Description

A named set of classes: the declared vocabulary of a dynamic object slot

This is the class counterpart of StructSet. A member declared object[SomeSet] holds an instance of any class in the set, and the set is what turns the wire name back into a class when the document is read — without the consumer having to register a resolver for it.

cxautogen emits one of these per classset declaration in a .cxh, with the entries sorted by wire name so the lookup is a binary search. Every class in a set must carry a wire name, which means it must be [serialize] or implement Serializable; cxautogen rejects the declaration otherwise, since a class with no name could never be resolved back.

Definition at line 108 of file objclass.h.


The documentation for this struct was generated from the following file: