ubit::UFlag Class Reference

Flagging conditions. More...

#include <ucond.hpp>

Inheritance diagram for ubit::UFlag:

ubit::UCond List of all members.

Public Member Functions

virtual bool verifies (const UContext &, const UControl *) const

Static Public Attributes

static const UFlag none

Detailed Description

Flagging conditions.

for specifying conditionnal objets that are only active when this condition is verified. Works in conbination with UFlagdef. Example:

 const UFlag showStores, showMuseums;

   UBox& stores = ...;  // whatever
   UBox& museums = ...; // whatever
   UBox& scene = ubox( showStores/stores + showMuseums/museums );

   // the stores appear in this box (the museums are ignored)
   UBox& scene_with_stores  = ubox( uflagdef(showStores) + scene);

   // the museums appear in this box (the stores are ignored)
   UBox& scene_with_museums = ubox( uflagdef(showMuseums) + scene);
 

!Warning: UFlag objects must not be deleted! See also: UFlagdef, UPropdef.


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:46 2007 for Ubit by  doxygen 1.4.7