Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
Macros.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SF_DECL_PROP_GS(Type, Name)
 Declares unreferenced getter and unreferenced setter for a property.
 
#define SF_DECL_PROP_GRS(Type, Name)
 Declares unreferenced getter and referenced setter for a property.
 
#define SF_DECL_PROP_RGRS(Type, Name)
 Declares referenced getter and referenced setter for a property.
 
#define SF_IMPL_PROP_G(Type, Class, Name, Instance)
 Implements unreferenced getter.
 
#define SF_IMPL_PROP_RG(Type, Class, Name, Instance)
 Implements referenced getter.
 
#define SF_IMPL_PROP_S(Type, Class, Name, Instance)
 Implements unreferenced setter.
 
#define SF_IMPL_PROP_SN(Type, Class, Name, Instance, NotifyFunc)
 Implements unreferenced setter with notification function.
 
#define SF_IMPL_PROP_RS(Type, Class, Name, Instance)
 Implements referenced setter.
 
#define SF_IMPL_PROP_RSN(Type, Class, Name, Instance, NotifyFunc)
 Implements referenced setter with notification function.
 
#define SF_IMPL_PROP_GS(Type, Class, Name, Instance)
 Implements unreferenced setter and unreferenced getter.
 
#define SF_IMPL_PROP_GRS(Type, Class, Name, Instance)
 
#define SF_IMPL_PROP_GSN(Type, Class, Name, Instance, NotifyFunc)
 Implements unreferenced setter and unreferenced getter with notification function.
 
#define SF_IMPL_PROP_GRSN(Type, Class, Name, Instance, NotifyFunc)
 Implements referenced setter and unreferenced getter with notification function.
 
#define SF_IMPL_PROP_RGRS(Type, Class, Name, Instance)
 Implements referenced setter and referenced getter with notification function.
 
#define SF_IMPL_PROP_RGRSN(Type, Class, Name, Instance, NotifyFunc)
 Implements referenced setter and referenced getter with notification function.
 
#define SF_IMPL_PROP_GSP(Type, Class, Name, Instance, Property)
 Implements referenced setter and referenced getter with notification function.
 

Macro Definition Documentation

◆ SF_DECL_PROP_GRS

#define SF_DECL_PROP_GRS (   Type,
  Name 
)
Value:
[[nodiscard]] Type get##Name() const; \
void set##Name(const Type&);

Declares unreferenced getter and referenced setter for a property.

Parameters
TypeType of the property.
NameSuffix of the getXXX and setXXX methods being implemented.

◆ SF_DECL_PROP_GS

#define SF_DECL_PROP_GS (   Type,
  Name 
)
Value:
[[nodiscard]] Type get##Name() const; \
void set##Name(Type);

Declares unreferenced getter and unreferenced setter for a property.

Parameters
TypeType of the property.
NameSuffix of the getXXX and setXXX methods being implemented.

◆ SF_DECL_PROP_RGRS

#define SF_DECL_PROP_RGRS (   Type,
  Name 
)
Value:
[[nodiscard]] const Type& get##Name() const; \
void set##Name(const Type&);

Declares referenced getter and referenced setter for a property.

Parameters
TypeType of the property.
NameSuffix of the getXXX and setXXX methods being implemented.

◆ SF_IMPL_PROP_G

#define SF_IMPL_PROP_G (   Type,
  Class,
  Name,
  Instance 
)
Value:
Type Class::get##Name() const \
{ \
return Instance; \
}

Implements unreferenced getter.

Parameters
TypeType of the property.
ClassClass name to implement the method in.
NameSuffix of the getXXX method being implemented.
InstanceThe instance the getter is reading.

◆ SF_IMPL_PROP_GRS

#define SF_IMPL_PROP_GRS (   Type,
  Class,
  Name,
  Instance 
)
Value:
SF_IMPL_PROP_G(Type, Class, Name, Instance) \
SF_IMPL_PROP_RS(Type, Class, Name, Instance)
#define SF_IMPL_PROP_G(Type, Class, Name, Instance)
Implements unreferenced getter.
Definition misc/qt/Macros.h:37

◆ SF_IMPL_PROP_GRSN

#define SF_IMPL_PROP_GRSN (   Type,
  Class,
  Name,
  Instance,
  NotifyFunc 
)
Value:
SF_IMPL_PROP_G(Type, Class, Name, Instance) \
SF_IMPL_PROP_RSN(Type, Class, Name, Instance, NotifyFunc)

Implements referenced setter and unreferenced getter with notification function.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the getXXX and setXXX methods being implemented.
InstanceThe instance the getter and setter is reading and writing.
NotifyFuncMust be of type void(void*)

◆ SF_IMPL_PROP_GS

#define SF_IMPL_PROP_GS (   Type,
  Class,
  Name,
  Instance 
)
Value:
SF_IMPL_PROP_G(Type, Class, Name, Instance) \
SF_IMPL_PROP_S(Type, Class, Name, Instance)

Implements unreferenced setter and unreferenced getter.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the getXXX and setXXX methods being implemented.
InstanceThe instance the getter and setter is reading and writing.

◆ SF_IMPL_PROP_GSN

#define SF_IMPL_PROP_GSN (   Type,
  Class,
  Name,
  Instance,
  NotifyFunc 
)
Value:
SF_IMPL_PROP_G(Type, Class, Name, Instance) \
SF_IMPL_PROP_SN(Type, Class, Name, Instance, NotifyFunc)

Implements unreferenced setter and unreferenced getter with notification function.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the getXXX and setXXX methods being implemented.
InstanceThe instance the getter and setter is reading and writing.
NotifyFuncMust be of type void(void*)

◆ SF_IMPL_PROP_GSP

#define SF_IMPL_PROP_GSP (   Type,
  Class,
  Name,
  Instance,
  Property 
)
Value:
Type Class::get##Name() const \
{ \
return Instance->property(#Property).value<Type>(); \
} \
void Class::set##Name(Type val) \
{ \
Instance->setProperty(#Property, QVariant::fromValue<Type>(val)); \
}

Implements referenced setter and referenced getter with notification function.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the getXXX and setXXX methods being implemented.
InstanceThe instance the getter and setter is reading and writing the property from and to.
PropertyName of the property.

◆ SF_IMPL_PROP_RG

#define SF_IMPL_PROP_RG (   Type,
  Class,
  Name,
  Instance 
)
Value:
const Type& Class::get##Name() const \
{ \
return Instance; \
}

Implements referenced getter.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the getXXX method being implemented.
InstanceThe instance the getter is reading.

◆ SF_IMPL_PROP_RGRS

#define SF_IMPL_PROP_RGRS (   Type,
  Class,
  Name,
  Instance 
)
Value:
SF_IMPL_PROP_RG(Type, Class, Name, Instance) \
SF_IMPL_PROP_RS(Type, Class, Name, Instance)
#define SF_IMPL_PROP_RG(Type, Class, Name, Instance)
Implements referenced getter.
Definition misc/qt/Macros.h:50

Implements referenced setter and referenced getter with notification function.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the getXXX and setXXX methods being implemented.
InstanceThe instance the getter and setter is reading and writing.

◆ SF_IMPL_PROP_RGRSN

#define SF_IMPL_PROP_RGRSN (   Type,
  Class,
  Name,
  Instance,
  NotifyFunc 
)
Value:
SF_IMPL_PROP_RG(Type, Class, Name, Instance) \
SF_IMPL_PROP_RSN(Type, Class, Name, Instance, NotifyFunc)

Implements referenced setter and referenced getter with notification function.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the getXXX and setXXX methods being implemented.
InstanceThe instance the getter and setter is reading and writing.
NotifyFuncMust be of type void(void*)

◆ SF_IMPL_PROP_RS

#define SF_IMPL_PROP_RS (   Type,
  Class,
  Name,
  Instance 
)
Value:
void Class::set##Name(const Type& val) \
{ \
Instance = val; \
}

Implements referenced setter.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the setXXX method being implemented.
InstanceThe instance the setter is writing.

◆ SF_IMPL_PROP_RSN

#define SF_IMPL_PROP_RSN (   Type,
  Class,
  Name,
  Instance,
  NotifyFunc 
)
Value:
void Class::set##Name(const Type& val) \
{ \
if (Instance != val) \
{ \
Instance = val; \
NotifyFunc(&Instance); \
} \
}

Implements referenced setter with notification function.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the setXXX method being implemented.
InstanceThe instance the setter is writing.
NotifyFuncMust be of type void(void*)

◆ SF_IMPL_PROP_S

#define SF_IMPL_PROP_S (   Type,
  Class,
  Name,
  Instance 
)
Value:
void Class::set##Name(Type val) \
{ \
Instance = val; \
}

Implements unreferenced setter.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the setXXX method being implemented.
InstanceThe instance the setter is writing.

◆ SF_IMPL_PROP_SN

#define SF_IMPL_PROP_SN (   Type,
  Class,
  Name,
  Instance,
  NotifyFunc 
)
Value:
void Class::set##Name(Type val) \
{ \
if (Instance != val) \
{ \
Instance = val; \
NotifyFunc(&Instance); \
} \
}

Implements unreferenced setter with notification function.

Parameters
TypeType of the property.
ClassClass name to implement the methods in.
NameSuffix of the setXXX method being implemented.
InstanceThe instance the setter is writing.
NotifyFuncMust be of type void(void*)