|
From: <koc...@us...> - 2008-05-10 15:36:36
|
Revision: 65
http://scstudio.svn.sourceforge.net/scstudio/?rev=65&view=rev
Author: kocianon
Date: 2008-05-10 08:36:31 -0700 (Sat, 10 May 2008)
Log Message:
-----------
getting metods
Modified Paths:
--------------
trunk/src/data/msc.h
Modified: trunk/src/data/msc.h
===================================================================
--- trunk/src/data/msc.h 2008-05-09 18:20:13 UTC (rev 64)
+++ trunk/src/data/msc.h 2008-05-10 15:36:31 UTC (rev 65)
@@ -243,6 +243,10 @@
virtual ~Msc()
{
}
+
+ void set_label(const std::string label) { m_label = label; }
+
+ const std::string& get_label() { return m_label; }
};
@@ -277,12 +281,17 @@
* Base abstract class for node of HMsc
*/
class HMscNode:public MscElement{
+ std::string m_label;
protected:
/**
* This is an abstract class
*/
HMscNode(){}
+public:
+
+ void set_label(const std::string label) { m_label = label; }
+ const std::string& get_label() { return m_label; }
};
@@ -313,7 +322,6 @@
StartNode()
{
-
}
/**
@@ -347,18 +355,19 @@
class HMsc:public Msc
{
private:
- /**
- * Start node of HMsc.
+ /**
+ * Start node of HMsc.
*
* Mandatory element in HMsc, should be initialized in constructor.
- */
- StartNodePtr m_start;
+ */
+ StartNodePtr m_start;
public:
HMsc()
{
- m_start = StartNodePtr(new StartNode());
+ StartNodePtr start(new StartNode);
+ m_start = start;
}
/**
@@ -448,6 +457,12 @@
return m_end;
}
+ EndNodePtr set_end()
+ {
+ EndNodePtr end(new EndNode);
+ return m_end = end;
+ }
+
/**
* Getter for m_msc.
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|