#include "Var.h" namespace psyc { Var::Var(std::string name, std::string value, bool persistent) : mName(name), mValue(value), mPersistent(persistent) { } std::string Var::getName() { return mName; } std::string Var::setName(std::string name) { return (mName = name); } std::string Var::getValue() { return mValue; } std::string Var::setValue(std::string value) { return (mValue = value); } std::string Var::print() { return ((mPersistent ? "=" : ":") + mName + "\t" + mValue); } }