LibrePCB Developers Documentation
FileFormatMigrationV1 Class Reference

Migration to upgrade file format v1.0. More...

#include <fileformatmigrationv1.h>

+ Inheritance diagram for FileFormatMigrationV1:
+ Collaboration diagram for FileFormatMigrationV1:

Public Member Functions

 FileFormatMigrationV1 (QObject *parent=nullptr) noexcept
 
 FileFormatMigrationV1 (const FileFormatMigrationV1 &other)=delete
 
virtual ~FileFormatMigrationV1 () noexcept
 
virtual void upgradeComponentCategory (TransactionalDirectory &dir) override
 
virtual void upgradePackageCategory (TransactionalDirectory &dir) override
 
virtual void upgradeSymbol (TransactionalDirectory &dir) override
 
virtual void upgradePackage (TransactionalDirectory &dir) override
 
virtual void upgradeComponent (TransactionalDirectory &dir) override
 
virtual void upgradeDevice (TransactionalDirectory &dir) override
 
virtual void upgradeLibrary (TransactionalDirectory &dir) override
 
virtual void upgradeProject (TransactionalDirectory &dir, QList< Message > &messages) override
 
virtual void upgradeWorkspaceData (TransactionalDirectory &dir) override
 
FileFormatMigrationV1operator= (const FileFormatMigrationV1 &rhs)=delete
 
- Public Member Functions inherited from FileFormatMigration
 FileFormatMigration ()=delete
 
 FileFormatMigration (const Version &fromVersion, const Version &toVersion, QObject *parent=nullptr) noexcept
 
 FileFormatMigration (const FileFormatMigration &other)=delete
 
virtual ~FileFormatMigration () noexcept
 
const VersiongetFromVersion () const noexcept
 
const VersiongetToVersion () const noexcept
 
virtual void upgradeComponentCategory (TransactionalDirectory &dir)=0
 
virtual void upgradePackageCategory (TransactionalDirectory &dir)=0
 
virtual void upgradeSymbol (TransactionalDirectory &dir)=0
 
virtual void upgradePackage (TransactionalDirectory &dir)=0
 
virtual void upgradeComponent (TransactionalDirectory &dir)=0
 
virtual void upgradeDevice (TransactionalDirectory &dir)=0
 
virtual void upgradeLibrary (TransactionalDirectory &dir)=0
 
virtual void upgradeProject (TransactionalDirectory &dir, QList< Message > &messages)=0
 
virtual void upgradeWorkspaceData (TransactionalDirectory &dir)=0
 
FileFormatMigrationoperator= (const FileFormatMigration &rhs)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from FileFormatMigration
static QList< std::shared_ptr< FileFormatMigration > > getMigrations (const Version &fileFormat)
 
- Protected Member Functions inherited from FileFormatMigration
Message buildMessage (Message::Severity severity, const QString &message, int affectedItems=-1) const noexcept
 
void upgradeVersionFile (TransactionalDirectory &dir, const QString &fileName)
 
- Protected Attributes inherited from FileFormatMigration
Version mFromVersion
 
Version mToVersion
 

Detailed Description

Migration to upgrade file format v1.0.

Constructor & Destructor Documentation

◆ FileFormatMigrationV1() [1/2]

FileFormatMigrationV1 ( QObject *  parent = nullptr)
explicitnoexcept

◆ FileFormatMigrationV1() [2/2]

FileFormatMigrationV1 ( const FileFormatMigrationV1 other)
delete

◆ ~FileFormatMigrationV1()

~FileFormatMigrationV1 ( )
virtualnoexcept

Member Function Documentation

◆ upgradeComponentCategory()

void upgradeComponentCategory ( TransactionalDirectory dir)
overridevirtual

Implements FileFormatMigration.

+ Here is the call graph for this function:

◆ upgradePackageCategory()

void upgradePackageCategory ( TransactionalDirectory dir)
overridevirtual

Implements FileFormatMigration.

+ Here is the call graph for this function:

◆ upgradeSymbol()

void upgradeSymbol ( TransactionalDirectory dir)
overridevirtual

Implements FileFormatMigration.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ upgradePackage()

void upgradePackage ( TransactionalDirectory dir)
overridevirtual

Implements FileFormatMigration.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ upgradeComponent()

void upgradeComponent ( TransactionalDirectory dir)
overridevirtual

Implements FileFormatMigration.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ upgradeDevice()

void upgradeDevice ( TransactionalDirectory dir)
overridevirtual

Implements FileFormatMigration.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ upgradeLibrary()

void upgradeLibrary ( TransactionalDirectory dir)
overridevirtual

Implements FileFormatMigration.

+ Here is the call graph for this function:

◆ upgradeProject()

void upgradeProject ( TransactionalDirectory dir,
QList< Message > &  messages 
)
overridevirtual

Implements FileFormatMigration.

+ Here is the call graph for this function:

◆ upgradeWorkspaceData()

void upgradeWorkspaceData ( TransactionalDirectory dir)
overridevirtual

Implements FileFormatMigration.

+ Here is the call graph for this function:

◆ operator=()

FileFormatMigrationV1 & operator= ( const FileFormatMigrationV1 rhs)
delete

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