Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Nov 30, 2024
1 parent 93631da commit 9cced08
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/headers/DatasDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@
#include <ezlibs/ezTools.hpp>
#include <ezlibs/ezXmlConfig.hpp>

#define declareMember(type, var, def) \
private: \
type m_##var = def; \
\
public: \
void set##var(const type& v##var) { \
m_##var = v##var; \
} \
type& get##var##Ref() { \
return m_##var; \
} \
const type& get##var() const { \
return m_##var; \
}

typedef const char* ImGuiLabel;

typedef double SignalValue;
Expand Down Expand Up @@ -102,3 +117,5 @@ typedef std::list<GraphGroupPtr>& GraphGroupsRef;
class GraphAnnotation;
typedef std::shared_ptr<GraphAnnotation> GraphAnnotationPtr;
typedef std::weak_ptr<GraphAnnotation> GraphAnnotationWeak;

typedef std::vector<std::pair<SourceFileName, SourceFilePathName>> SourceFileContainer;
2 changes: 1 addition & 1 deletion src/project/ProjectFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ProjectFile : public Ltg::IProject, public ez::xml::Config {
double m_PredefinedZeroValue = 0.0; // the predefined zero value for signals
SourceFilePathName m_ScriptFilePathName;
SourceFileName m_ScriptFileName;
std::vector<std::pair<SourceFileName, SourceFilePathName>> m_SourceFilePathNames;
SourceFileContainer m_SourceFilePathNames;
Ltg::ScriptingModuleName m_ScriptingModuleName;
bool m_ShowVariableSignalsInAllGraphView = false;
bool m_ShowVariableSignalsInGraphView = false;
Expand Down

0 comments on commit 9cced08

Please sign in to comment.