Workspace 6.21.5
Public Types | Public Member Functions | Static Public Member Functions | List of all members
SchedulerFeature Class Referencefinal

#include <Workspace/DataExecution/Execution/schedulerfeature.h>

Public Types

enum  Type { Preferred , Mandatory }
 

Public Member Functions

 SchedulerFeature ()
 
 SchedulerFeature (const QString &name, bool isEditable=true, Type type=Preferred, bool isInherited=false, bool stored=true, uint count=0)
 
 SchedulerFeature (const SchedulerFeature &)
 
 ~SchedulerFeature ()
 
uint getCount () const
 
QString getDisplayName () const
 
bool getIsEditable () const
 
bool getIsInherited () const
 
const QString & getName () const
 
bool getStored () const
 
Type getType () const
 
bool load (const QJsonObject &)
 
bool load (QDataStream &, Application::BasicTextLogger *logger)
 
bool load (SerializedItem &)
 
bool loadWithoutCount (QDataStream &, Application::BasicTextLogger *logger)
 
SchedulerFeatureoperator= (const SchedulerFeature &)
 
bool operator== (const SchedulerFeature &) const
 
void save (QDataStream &) const
 
void save (QJsonObject &) const
 
void setCount (uint n)
 
void setIsEditable (bool editable)
 
void setIsInherited (bool inherited)
 
void setName (const QString &name)
 
void setStored (bool stored)
 
void setType (Type type)
 

Static Public Member Functions

static SchedulerFeature fromDisplayName (const QString &displayName)
 

Member Enumeration Documentation

◆ Type

enum Type
Enumerator
Preferred 
Mandatory 

Constructor & Destructor Documentation

◆ SchedulerFeature() [1/3]

◆ SchedulerFeature() [2/3]

SchedulerFeature ( const QString &  name,
bool  isEditable = true,
Type  type = Preferred,
bool  isInherited = false,
bool  stored = true,
uint  count = 0 
)

◆ SchedulerFeature() [3/3]

◆ ~SchedulerFeature()

~SchedulerFeature ( )
default

Member Function Documentation

◆ fromDisplayName()

SchedulerFeature fromDisplayName ( const QString &  displayName)
static

◆ getCount()

uint getCount ( ) const
inline

◆ getDisplayName()

QString getDisplayName ( ) const

◆ getIsEditable()

bool getIsEditable ( ) const
inline

◆ getIsInherited()

bool getIsInherited ( ) const
inline

◆ getName()

const QString & getName ( ) const
inline

◆ getStored()

bool getStored ( ) const
inline

◆ getType()

Type getType ( ) const
inline

◆ load() [1/3]

bool load ( const QJsonObject &  obj)

◆ load() [2/3]

bool load ( QDataStream &  stream,
Application::BasicTextLogger logger 
)

◆ load() [3/3]

bool load ( SerializedItem item)

◆ loadWithoutCount()

bool loadWithoutCount ( QDataStream &  stream,
Application::BasicTextLogger logger 
)

load from stream without count, for older versions' feature format

◆ operator=()

SchedulerFeature & operator= ( const SchedulerFeature rhs)

◆ operator==()

bool operator== ( const SchedulerFeature rhs) const

◆ save() [1/2]

void save ( QDataStream &  stream) const

◆ save() [2/2]

void save ( QJsonObject &  obj) const

◆ setCount()

void setCount ( uint  n)
inline

◆ setIsEditable()

void setIsEditable ( bool  editable)
inline

◆ setIsInherited()

void setIsInherited ( bool  inherited)
inline

◆ setName()

void setName ( const QString &  name)
inline

◆ setStored()

void setStored ( bool  stored)
inline

◆ setType()

void setType ( Type  type)
inline