Skip to content
Snippets Groups Projects
Commit 6488b685 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

transfer _changed attribute

parent e8a34116
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,7 @@ namespace onelab{ ...@@ -127,7 +127,7 @@ namespace onelab{
const std::set<std::string> &getClients() const { return _clients; } const std::set<std::string> &getClients() const { return _clients; }
static char charSep() { return '\0'; } static char charSep() { return '\0'; }
static double maxNumber() { return 1e200; } static double maxNumber() { return 1e200; }
static std::string version() { return "1.02"; } static std::string version() { return "1.03"; }
static std::string getNextToken(const std::string &msg, static std::string getNextToken(const std::string &msg,
std::string::size_type &first, std::string::size_type &first,
char separator=charSep()) char separator=charSep())
...@@ -161,6 +161,7 @@ namespace onelab{ ...@@ -161,6 +161,7 @@ namespace onelab{
<< sanitize(getName()) << charSep() << sanitize(getName()) << charSep()
<< sanitize(getLabel()) << charSep() << sanitize(getLabel()) << charSep()
<< sanitize(getHelp()) << charSep() << sanitize(getHelp()) << charSep()
<< (getChanged() ? 1 : 0) << charSep()
<< (getVisible() ? 1 : 0) << charSep() << (getVisible() ? 1 : 0) << charSep()
<< (getReadOnly() ? 1 : 0) << charSep() << (getReadOnly() ? 1 : 0) << charSep()
<< _attributes.size() << charSep(); << _attributes.size() << charSep();
...@@ -182,6 +183,7 @@ namespace onelab{ ...@@ -182,6 +183,7 @@ namespace onelab{
setName(getNextToken(msg, pos)); setName(getNextToken(msg, pos));
setLabel(getNextToken(msg, pos)); setLabel(getNextToken(msg, pos));
setHelp(getNextToken(msg, pos)); setHelp(getNextToken(msg, pos));
setChanged(atoi(getNextToken(msg, pos).c_str()));
setVisible(atoi(getNextToken(msg, pos).c_str())); setVisible(atoi(getNextToken(msg, pos).c_str()));
setReadOnly(atoi(getNextToken(msg, pos).c_str())); setReadOnly(atoi(getNextToken(msg, pos).c_str()));
int numAttributes = atoi(getNextToken(msg, pos).c_str()); int numAttributes = atoi(getNextToken(msg, pos).c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment