LibrePCB Developers Documentation
PackageModel Class Referencefinal

Represents a 3D model of a librepcb::Package. More...

#include <packagemodel.h>

+ Collaboration diagram for PackageModel:

Public Types

enum class  Event
 
typedef Slot< PackageModel, EventOnEditedSlot
 

Public Member Functions

 PackageModel ()=delete
 
 PackageModel (const PackageModel &other) noexcept
 
 PackageModel (const Uuid &uuid, const ElementName &name) noexcept
 
 PackageModel (const SExpression &node)
 
 ~PackageModel () noexcept
 
const UuidgetUuid () const noexcept
 
const ElementNamegetName () const noexcept
 
QString getFileName () const noexcept
 
bool setName (const ElementName &name) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const PackageModel &rhs) const noexcept
 
bool operator!= (const PackageModel &rhs) const noexcept
 
PackageModeloperator= (const PackageModel &rhs) noexcept
 

Public Attributes

Signal< PackageModel, EventonEdited
 

Private Attributes

Uuid mUuid
 
ElementName mName
 

Detailed Description

Represents a 3D model of a librepcb::Package.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
UuidChanged 
NameChanged 

Constructor & Destructor Documentation

◆ PackageModel() [1/4]

PackageModel ( )
delete

◆ PackageModel() [2/4]

PackageModel ( const PackageModel other)
noexcept

◆ PackageModel() [3/4]

PackageModel ( const Uuid uuid,
const ElementName name 
)
noexcept

◆ PackageModel() [4/4]

PackageModel ( const SExpression node)
explicit

◆ ~PackageModel()

~PackageModel ( )
noexcept

Member Function Documentation

◆ getUuid()

const Uuid & getUuid ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getName()

const ElementName & getName ( ) const
inlinenoexcept

◆ getFileName()

QString getFileName ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setName()

bool setName ( const ElementName name)
noexcept
+ Here is the caller graph for this function:

◆ serialize()

void serialize ( SExpression root) const

Serialize into librepcb::SExpression node.

Parameters
rootRoot node to serialize into.
+ Here is the call graph for this function:

◆ operator==()

bool operator== ( const PackageModel rhs) const
noexcept

◆ operator!=()

bool operator!= ( const PackageModel rhs) const
inlinenoexcept

◆ operator=()

PackageModel & operator= ( const PackageModel rhs)
noexcept

Member Data Documentation

◆ onEdited

◆ mUuid

Uuid mUuid
private

◆ mName

ElementName mName
private

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