Skip to content

Commit 9780e4d

Browse files
author
brichards64
committed
passed through slocontrol locable and hidden to add
1 parent 99d69a5 commit 9780e4d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/DAQInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace ToolFramework {
6060

6161
SlowControlCollection* GetSlowControlCollection();
6262
SlowControlElement* GetSlowControlVariable(std::string key);
63-
bool AddSlowControlVariable(std::string name, SlowControlElementType type, std::function<std::string(const char*)> change_function=nullptr, std::function<std::string(const char*)> read_function=nullptr);
63+
bool AddSlowControlVariable(std::string name, SlowControlElementType type, std::function<std::string(const char*)> change_function=nullptr, std::function<std::string(const char*)> read_function=nullptr, bool testing_lock=true, bool hidded=false);
6464
bool RemoveSlowControlVariable(std::string name);
6565
void ClearSlowControlVariables();
6666

src/DAQInterface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ SlowControlElement* DAQInterface::GetSlowControlVariable(std::string key){
282282
}
283283

284284
// SCFunction defined in SlowControlElement.h: std::function<std::string(const char*)>
285-
bool DAQInterface::AddSlowControlVariable(std::string name, SlowControlElementType type, SCFunction change_function, SCFunction read_function){
285+
bool DAQInterface::AddSlowControlVariable(std::string name, SlowControlElementType type, SCFunction change_function, SCFunction read_function, bool testing_lock, bool hidded){
286286

287-
return sc_vars.Add(name, type, change_function, read_function);
287+
return sc_vars.Add(name, type, change_function, read_function, testing_lock, hidded);
288288

289289
}
290290

0 commit comments

Comments
 (0)