|
@@ -3,7 +3,7 @@
|
|
* Company: Lynar Studios
|
|
* Company: Lynar Studios
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* Created: 2020-09-17
|
|
* Created: 2020-09-17
|
|
- * Changed: 2020-11-25
|
|
|
|
|
|
+ * Changed: 2020-11-26
|
|
*
|
|
*
|
|
* */
|
|
* */
|
|
|
|
|
|
@@ -11,7 +11,7 @@
|
|
#include <ls_std/serialization/logic/SerializableJSONState.hpp>
|
|
#include <ls_std/serialization/logic/SerializableJSONState.hpp>
|
|
#include <ls_std/exception/IllegalArgumentException.hpp>
|
|
#include <ls_std/exception/IllegalArgumentException.hpp>
|
|
|
|
|
|
-ls_std::SerializableJSONStateMachine::SerializableJSONStateMachine(const std::shared_ptr<StateMachine>& _value) :
|
|
|
|
|
|
+ls_std::SerializableJSONStateMachine::SerializableJSONStateMachine(const std::shared_ptr<ls_std::StateMachine>& _value) :
|
|
Class("SerializableJSONStateMachine")
|
|
Class("SerializableJSONStateMachine")
|
|
{
|
|
{
|
|
this->_assignValue(_value);
|
|
this->_assignValue(_value);
|
|
@@ -33,7 +33,17 @@ void ls_std::SerializableJSONStateMachine::unmarshal(const ls_std::byte_field &_
|
|
this->value->setName(this->jsonObject["name"]);
|
|
this->value->setName(this->jsonObject["name"]);
|
|
}
|
|
}
|
|
|
|
|
|
-void ls_std::SerializableJSONStateMachine::_assignValue(const std::shared_ptr<StateMachine> &_value)
|
|
|
|
|
|
+std::shared_ptr<ls_std::StateMachine> ls_std::SerializableJSONStateMachine::getValue()
|
|
|
|
+{
|
|
|
|
+ return this->value;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void ls_std::SerializableJSONStateMachine::setValue(const std::shared_ptr<ls_std::StateMachine> &_value)
|
|
|
|
+{
|
|
|
|
+ this->_assignValue(_value);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void ls_std::SerializableJSONStateMachine::_assignValue(const std::shared_ptr<ls_std::StateMachine> &_value)
|
|
{
|
|
{
|
|
if(_value == nullptr) {
|
|
if(_value == nullptr) {
|
|
throw ls_std::IllegalArgumentException {};
|
|
throw ls_std::IllegalArgumentException {};
|