GitHub    Download    Forum
Overview
Tutorial
C++ API
C# API
DTDL
DADL
Comments, Preprocessor
Definitions
BitFlagSets
Linking objects
Setup

BitFlagSets

BitFlagSets are used to group attributes in the loading process.

Default BitFlagSets

For every class defined in DADL, the compiler automatically generates the BitFlagSet ALL_ATTRIBUTES and FIXED_ATTRIBUTES. ALL_ATTRIBUTES has all the bits set for every attribute used in the class. FIXED_ATTRIBUTES has all the bits set for every non-variable attribute used in the class.

Custom BitFlagSets

A BitFlagSet can be defined as a member of an object or as a global definition.
object WMyObject
{
    bitflagset sh
    {
        MyClass { Title, Description }
        MailServer::Class2 { * }
    };
};

bitflagset sh
{
    MyClass { Title, Description }
    MailServer::Class2 { * }
};
© 2022 Mobiland AG