Skip to content

Commit 9cced08

Browse files
committed
-
1 parent 93631da commit 9cced08

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/headers/DatasDef.h

+17
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@
1414
#include <ezlibs/ezTools.hpp>
1515
#include <ezlibs/ezXmlConfig.hpp>
1616

17+
#define declareMember(type, var, def) \
18+
private: \
19+
type m_##var = def; \
20+
\
21+
public: \
22+
void set##var(const type& v##var) { \
23+
m_##var = v##var; \
24+
} \
25+
type& get##var##Ref() { \
26+
return m_##var; \
27+
} \
28+
const type& get##var() const { \
29+
return m_##var; \
30+
}
31+
1732
typedef const char* ImGuiLabel;
1833

1934
typedef double SignalValue;
@@ -102,3 +117,5 @@ typedef std::list<GraphGroupPtr>& GraphGroupsRef;
102117
class GraphAnnotation;
103118
typedef std::shared_ptr<GraphAnnotation> GraphAnnotationPtr;
104119
typedef std::weak_ptr<GraphAnnotation> GraphAnnotationWeak;
120+
121+
typedef std::vector<std::pair<SourceFileName, SourceFilePathName>> SourceFileContainer;

src/project/ProjectFile.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ProjectFile : public Ltg::IProject, public ez::xml::Config {
5757
double m_PredefinedZeroValue = 0.0; // the predefined zero value for signals
5858
SourceFilePathName m_ScriptFilePathName;
5959
SourceFileName m_ScriptFileName;
60-
std::vector<std::pair<SourceFileName, SourceFilePathName>> m_SourceFilePathNames;
60+
SourceFileContainer m_SourceFilePathNames;
6161
Ltg::ScriptingModuleName m_ScriptingModuleName;
6262
bool m_ShowVariableSignalsInAllGraphView = false;
6363
bool m_ShowVariableSignalsInGraphView = false;

0 commit comments

Comments
 (0)