From df3a1119918c49236c86c52a5b6ab01515f73e5f Mon Sep 17 00:00:00 2001 From: Francois Henrotte <francois.henrotte@ulg.ac.be> Date: Wed, 11 Jan 2012 12:06:29 +0000 Subject: [PATCH] added a function server->NumParam() --- Common/onelab.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Common/onelab.h b/Common/onelab.h index 7a1e2631f2..2fa9b05f6b 100644 --- a/Common/onelab.h +++ b/Common/onelab.h @@ -495,6 +495,9 @@ namespace onelab{ bool get(std::vector<function> &ps, const std::string &name="", const std::string &client=""){ return _get(ps, name, client, _functions); } // check if at least one parameter depends on the given client + int NumParam(){ + return _numbers.size() + _strings.size() + _regions.size() + _functions.size(); + } bool hasClient(const std::string &client) const { std::set<parameter*> ps; @@ -629,7 +632,8 @@ namespace onelab{ std::string toChar(const std::string &client="") { return _parameterSpace.toChar(client); - } + } + int NumParam(){ return _parameterSpace.NumParam();} }; class localClient : public client{ -- GitLab