aboutsummaryrefslogtreecommitdiffstats
path: root/brillo/flag_helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'brillo/flag_helper.cc')
-rw-r--r--brillo/flag_helper.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/brillo/flag_helper.cc b/brillo/flag_helper.cc
index 065a1c7..1c332d3 100644
--- a/brillo/flag_helper.cc
+++ b/brillo/flag_helper.cc
@@ -86,6 +86,22 @@ const char* Int32Flag::GetType() const {
return "int";
}
+UInt32Flag::UInt32Flag(const char* name,
+ uint32_t* value,
+ const char* default_value,
+ const char* help,
+ bool visible)
+ : Flag(name, default_value, help, visible), value_(value) {
+}
+
+bool UInt32Flag::SetValue(const std::string& value) {
+ return base::StringToUint(value, value_);
+}
+
+const char* UInt32Flag::GetType() const {
+ return "uint32";
+}
+
Int64Flag::Int64Flag(const char* name,
int64_t* value,
const char* default_value,