forked from kactus2/kactus2dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CORRECTIVE] Fix file set references in component instantiations and …
…bus interfaces.
- Loading branch information
Showing
33 changed files
with
594 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
//----------------------------------------------------------------------------- | ||
// File: FileSetRef.cpp | ||
//----------------------------------------------------------------------------- | ||
// Project: Kactus 2 | ||
// Author: Anton Hagqvist | ||
// Date: 4.9.2023 | ||
// | ||
// Description: | ||
// Describes the ipxact:fileSetRef element. | ||
//----------------------------------------------------------------------------- | ||
|
||
#include "FileSetRef.h" | ||
|
||
//----------------------------------------------------------------------------- | ||
// Function: FileSetRef::FileSetRef() | ||
//----------------------------------------------------------------------------- | ||
FileSetRef::FileSetRef(FileSetRef const& other) : | ||
Extendable(other), | ||
localName_(other.localName_), | ||
isPresent_(other.isPresent_) | ||
{ | ||
|
||
} | ||
|
||
//----------------------------------------------------------------------------- | ||
// Function: FileSetRef::FileSetRef() | ||
//----------------------------------------------------------------------------- | ||
FileSetRef::FileSetRef() : Extendable() | ||
{ | ||
|
||
} | ||
|
||
//----------------------------------------------------------------------------- | ||
// Function: FileSetRef::getLocalName() | ||
//----------------------------------------------------------------------------- | ||
QString FileSetRef::getReference() const | ||
{ | ||
return localName_; | ||
} | ||
|
||
//----------------------------------------------------------------------------- | ||
// Function: FileSetRef::setLocalName() | ||
//----------------------------------------------------------------------------- | ||
void FileSetRef::setReference(QString const& newName) | ||
{ | ||
localName_ = newName; | ||
} | ||
|
||
//----------------------------------------------------------------------------- | ||
// Function: FileSetRef::getIsPresent() | ||
//----------------------------------------------------------------------------- | ||
QString FileSetRef::getIsPresent() const | ||
{ | ||
return isPresent_; | ||
} | ||
|
||
//----------------------------------------------------------------------------- | ||
// Function: FileSetRef::setIsPresent() | ||
//----------------------------------------------------------------------------- | ||
void FileSetRef::setIsPresent(QString const& newIsPresent) | ||
{ | ||
isPresent_ = newIsPresent; | ||
} | ||
|
||
//----------------------------------------------------------------------------- | ||
// Function: FileSetRef::operator=() | ||
//----------------------------------------------------------------------------- | ||
FileSetRef& FileSetRef::operator=(FileSetRef const& other) | ||
{ | ||
if (this != &other) | ||
{ | ||
Extendable::operator=(other); | ||
localName_ = other.localName_; | ||
isPresent_ = other.isPresent_; | ||
} | ||
|
||
return *this; | ||
} |
Oops, something went wrong.