summaryrefslogtreecommitdiffstats
path: root/native/dicttoolkit/src/command_executors/header_executor.cpp
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-11-08 05:23:05 +0900
committerKeisuke Kuroyanagi <ksk@google.com>2014-11-09 06:22:28 +0900
commitbd48963bdf20aa58b2f4d0cca762aba0f2917858 (patch)
tree8e2b0fc52981ebd6993d62588200ccdc0cda85f1 /native/dicttoolkit/src/command_executors/header_executor.cpp
parent4bfa3b273ea9d23fa642b5b87b1113429f5f539b (diff)
downloadandroid_packages_inputmethods_LatinIME-bd48963bdf20aa58b2f4d0cca762aba0f2917858.tar.gz
android_packages_inputmethods_LatinIME-bd48963bdf20aa58b2f4d0cca762aba0f2917858.tar.bz2
android_packages_inputmethods_LatinIME-bd48963bdf20aa58b2f4d0cca762aba0f2917858.zip
Add CommandExecutor for dicttoolkit.
Bug: 10059681 Change-Id: I90334caaf37c84ce7d1b93d12efbfb5f244a9420
Diffstat (limited to 'native/dicttoolkit/src/command_executors/header_executor.cpp')
-rw-r--r--native/dicttoolkit/src/command_executors/header_executor.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/native/dicttoolkit/src/command_executors/header_executor.cpp b/native/dicttoolkit/src/command_executors/header_executor.cpp
new file mode 100644
index 000000000..ec2ca8119
--- /dev/null
+++ b/native/dicttoolkit/src/command_executors/header_executor.cpp
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "command_executors/header_executor.h"
+
+#include <cstdio>
+
+namespace latinime {
+namespace dicttoolkit {
+
+const char *const HeaderExecutor::COMMAND_NAME = "header";
+
+/* static */ int HeaderExecutor::run(const int argc, char **argv) {
+ fprintf(stderr, "Command '%s' has not been implemented yet.\n", COMMAND_NAME);
+ return 0;
+}
+
+} // namespace dicttoolkit
+} // namespace latinime