Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::PartProject Class Reference

#include <PartProject.h>

Collaboration diagram for sf::PartProject:

Public Member Functions

 PartProject ()
 Default constructor.
 
void assign (const PartProject *)
 Assign the part and project the passed instance pointer. When the pointer is null this instance is cleared.
 
void clear ()
 Clears the part and project member.
 
QString getPartProject ()
 Gets the part and project combination in one string using a separator where the 'part' comes first.
 
void setPartProject (const QString &part_project)
 Sets the part and project using a part project combination string with a separator.
 
void setProject (const QString &)
 Sets only the project.
 
QString getProject () const
 Gets the project.
 
void setPart (const QString &part)
 Sets the part and project using the reference name.
 
QString getPart () const
 Gets the 'part' part.
 
QString getReferenceName ()
 Gets the reference name which is a project + part combination using a separator '@' where the project comes first.
 
void setReferenceName (const QString &ref_name)
 Sets project and part using a combination of the two having a separator '@'.
 
bool exists () const
 Checks if the project part combination exists.
 
bool isEmpty () const
 Checks if the part and project are both not assigned and thus empty.
 
QString getFilepath () const
 Gets the filepath of the project.
 

Public Attributes

TClosure< void, void * > onChange
 Event handler for when a change occurred.
 

Constructor & Destructor Documentation

◆ PartProject()

sf::PartProject::PartProject ( )

Default constructor.

Member Function Documentation

◆ assign()

void sf::PartProject::assign ( const PartProject )

Assign the part and project the passed instance pointer. When the pointer is null this instance is cleared.

◆ clear()

void sf::PartProject::clear ( )

Clears the part and project member.

◆ exists()

bool sf::PartProject::exists ( ) const

Checks if the project part combination exists.

Returns
True when it exists.

◆ getFilepath()

QString sf::PartProject::getFilepath ( ) const

Gets the filepath of the project.

◆ getPart()

QString sf::PartProject::getPart ( ) const

Gets the 'part' part.

◆ getPartProject()

QString sf::PartProject::getPartProject ( )

Gets the part and project combination in one string using a separator where the 'part' comes first.

◆ getProject()

QString sf::PartProject::getProject ( ) const

Gets the project.

◆ getReferenceName()

QString sf::PartProject::getReferenceName ( )

Gets the reference name which is a project + part combination using a separator '@' where the project comes first.

◆ isEmpty()

bool sf::PartProject::isEmpty ( ) const

Checks if the part and project are both not assigned and thus empty.

Returns

◆ setPart()

void sf::PartProject::setPart ( const QString &  part)

Sets the part and project using the reference name.

◆ setPartProject()

void sf::PartProject::setPartProject ( const QString &  part_project)

Sets the part and project using a part project combination string with a separator.

◆ setProject()

void sf::PartProject::setProject ( const QString &  )

Sets only the project.

◆ setReferenceName()

void sf::PartProject::setReferenceName ( const QString &  ref_name)

Sets project and part using a combination of the two having a separator '@'.

Member Data Documentation

◆ onChange

TClosure<void, void*> sf::PartProject::onChange

Event handler for when a change occurred.


The documentation for this class was generated from the following file: