-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c82a512
commit f6075c6
Showing
2 changed files
with
101 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/************************************************************************************ | ||
* EMStudio - Open Source ECU tuning software * | ||
* Copyright (C) 2013 Michael Carpenter ([email protected]) * | ||
* * | ||
* This file is a part of EMStudio * | ||
* * | ||
* EMStudio is free software; you can redistribute it and/or * | ||
* modify it under the terms of the GNU Lesser General Public * | ||
* License as published by the Free Software Foundation, version * | ||
* 2.1 of the License. * | ||
* * | ||
* EMStudio is distributed in the hope that it will be useful, * | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * | ||
* Lesser General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License along with this program; if not, write to the Free Software * | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * | ||
************************************************************************************/ | ||
|
||
#include "configblock.h" | ||
|
||
ConfigBlock::ConfigBlock() | ||
{ | ||
} | ||
ConfigBlock::ConfigBlock(QString name,QString type,QString override,unsigned short locationid, unsigned short size,unsigned short elementsize,unsigned short offset, QList<QPair<QString,double> > calc) | ||
{ | ||
m_name = name; | ||
m_type = type; | ||
m_sizeOverride = override; | ||
m_locationId = locationid; | ||
m_size = size; | ||
m_elementSize = elementsize; | ||
m_offset = offset; | ||
m_calc = calc; | ||
} |
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,64 @@ | ||
/************************************************************************************ | ||
* EMStudio - Open Source ECU tuning software * | ||
* Copyright (C) 2013 Michael Carpenter ([email protected]) * | ||
* * | ||
* This file is a part of EMStudio * | ||
* * | ||
* EMStudio is free software; you can redistribute it and/or * | ||
* modify it under the terms of the GNU Lesser General Public * | ||
* License as published by the Free Software Foundation, version * | ||
* 2.1 of the License. * | ||
* * | ||
* EMStudio is distributed in the hope that it will be useful, * | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * | ||
* Lesser General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License along with this program; if not, write to the Free Software * | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * | ||
************************************************************************************/ | ||
|
||
#ifndef CONFIGBLOCK_H | ||
#define CONFIGBLOCK_H | ||
#include <QString> | ||
#include <QPair> | ||
#include <QList> | ||
class ConfigBlock | ||
{ | ||
public: | ||
ConfigBlock(); | ||
ConfigBlock(QString name,QString type, QString override,unsigned short locationid, unsigned short size,unsigned short elementsize,unsigned short offset, QList<QPair<QString,double> > calc); | ||
void setName(QString name) { m_name = name; } | ||
void setType(QString type) { m_type = type; } | ||
void setSizeOverride(QString override) { m_sizeOverride = override; } | ||
void setSizeOverrideMult(double mult) { m_sizeOverrideMult = mult; } | ||
void setLocationId(unsigned short locationid) { m_locationId = locationid; } | ||
void setSize(unsigned short size) { m_size = size; } | ||
void setElementSize(unsigned short size) { m_elementSize = size; } | ||
void setOffset(unsigned short offset) { m_offset = offset; } | ||
void setCalc(QList<QPair<QString,double> > calc) { m_calc = calc; } | ||
QString name() { return m_name; } | ||
QString type() { return m_type; } | ||
QString sizeOverride() { return m_sizeOverride; } | ||
double sizeOverrideMult() { return m_sizeOverrideMult; } | ||
unsigned short locationId() { return m_locationId; } | ||
unsigned short offset() { return m_offset; } | ||
unsigned short size() { return m_size; } | ||
unsigned short elementSize() { return m_elementSize; } | ||
QList<QPair<QString,double> > calc() { return m_calc; } | ||
private: | ||
QString m_name; | ||
QString m_type; | ||
QString m_sizeOverride; | ||
double m_sizeOverrideMult; | ||
unsigned short m_locationId; | ||
unsigned short m_size; | ||
unsigned short m_elementSize; | ||
unsigned short m_offset; | ||
QList<QPair<QString,double> > m_calc; | ||
|
||
|
||
}; | ||
|
||
#endif // CONFIGBLOCK_H |