Workspace 6.21.5
Public Types | List of all members
AssignDataType< T > Struct Template Reference

Traits class defining whether a class T supports assignment. More...

#include <Workspace/DataExecution/DataObjects/datafactorytraits.h>

Public Types

enum  { Supported = 1 }
 

Detailed Description

template<typename T>
struct CSIRO::DataExecution::AssignDataType< T >

If T does not support assignment, then in the same header that defines T, specialize this class template as follows:

namespace CSIRO
{
namespace DataExecution
{
template<> struct AssignDataType<MyClass>
{
enum { Supported = 0 };
};
}}
Top level namespace for all Workspace code.
Definition: applicationsupportplugin.cpp:32
Traits class defining whether a class T supports assignment.
Definition: datafactorytraits.h:545

By doing this, the assignDataObject() function in TypedDataFactory will also automatically be given an appropriate function body without any further changes.

See also
CloneDataType, SerializeDataType

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Supported