DD::Image::Description Class Reference

Inherited by DD::Image::DeepWriter::Description, DD::Image::GeoWriter::Description, DD::Image::Op::Description, DD::Image::ReaderDescription, and DD::Image::Writer::Description.

Public Types

typedef Node *(* NodeBuilder) (void *)
 
typedef std::vector< Description * > DescriptionList
 

Public Attributes

const char * compiled
 
const char * plugin
 
Licenselicense
 

Protected Member Functions

void ctor (void(*f)(Description *))
 
void ctor (void(*f)(Description *), NodeBuilder nodeBuilder)
 

Detailed Description

Describes an object provided by a plugin. Each different class of object has it's own subclass of Description. The base class mostly provides licensing check information. Writers of plugins can take advantage of this to prevent their plugin from working on unauthorized systems.

Member Function Documentation

void DD::Image::Description::ctor ( void(*)(Description *)  f)
inlineprotected

Subclasses should call this as part of their constructor. These constructors should be written in-line so that the compile-time information is inserted into the description.

The function f will be called if license is null or if the license check works.

Member Data Documentation

const char* DD::Image::Description::compiled

Date and DD_IMAGE_VERSION_LONG this was compiled for

const char* DD::Image::Description::plugin

Set to the plugin filename

License* DD::Image::Description::license

If non-null, license check is run



©2021 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk