From 30883a97ef7e7a2778006ef678bddda5ac2b12e1 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 17 Oct 2011 05:53:25 +0000 Subject: [PATCH] onelab --- Common/onelab.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Common/onelab.h b/Common/onelab.h index b674981c5b..4b847745d7 100644 --- a/Common/onelab.h +++ b/Common/onelab.h @@ -40,11 +40,13 @@ namespace onelab{ private: // the name of the parameter, including its '/'-separated path in // the parameter hierarchy. Parameters or subpaths can start with - // numbers to force their relative ordering. + // numbers to force their relative ordering (such numbers could be + // automatically hidden in a GUI). std::string _name; - // optional help strings + // optional help strings (the short help can serve as a better way + // to display the parameter in a GUI) std::string _shortHelp, _help; - // client code(s) for which this parameter makes sense + // client code(s) that use this parameter std::set<std::string> _clients; public: parameter(const std::string &name="", const std::string &shortHelp="", @@ -330,7 +332,8 @@ namespace onelab{ // get the parameter matching the given name, or all the // parameters in the category if no name is given. If we find a // given parameter by name, we add the client requesting the - // parameter to the list of clients for this parameter. + // parameter to the list of clients for this parameter. This also + // needs to be locked. template <class T> bool _get(std::vector<T> &p, const std::string &name, const std::string &client, std::set<T*, parameterLessThan> &ps) @@ -529,6 +532,7 @@ namespace onelab{ class remoteNetworkClient : public client{ private: + // address (inet:port or unix socket) of the server std::string _serverAddress; // underlying GmshClient GmshClient *_gmshClient; -- GitLab