MCPcopy Create free account
hub / github.com/creatale/node-dv / GetValue

Method GetValue

deps/tesseract/ccmain/paramsd.cpp:135–151  ·  view source on GitHub ↗

Getter for the value.

Source from the content-addressed store, hash-verified

133
134// Getter for the value.
135STRING ParamContent::GetValue() const {
136 STRING result;
137 if (param_type_ == VT_INTEGER) {
138 result.add_str_int("", *iIt);
139 } else if (param_type_ == VT_BOOLEAN) {
140 result.add_str_int("", *bIt);
141 } else if (param_type_ == VT_DOUBLE) {
142 result.add_str_double("", *dIt);
143 } else if (param_type_ == VT_STRING) {
144 if (((STRING) * (sIt)).string() != NULL) {
145 result = sIt->string();
146 } else {
147 result = "Null";
148 }
149 }
150 return result;
151}
152
153// Setter for the value.
154void ParamContent::SetValue(const char* val) {

Callers 3

BuildListOfAllLeavesMethod · 0.80
NotifyMethod · 0.80
WriteParamsMethod · 0.80

Calls 3

add_str_intMethod · 0.80
add_str_doubleMethod · 0.80
stringMethod · 0.45

Tested by

no test coverage detected