--- /dev/null
+file(GLOB_RECURSE SOURCES "src/*.cpp")
+file(GLOB_RECURSE TESTS "src/*.test.cpp")
+list(REMOVE_ITEM SOURCES ${TESTS})
+
+add_library(hermes_std STATIC ${SOURCES})
+set_target_properties(hermes_std PROPERTIES POSITION_INDEPENDENT_CODE ON)
+target_include_directories(hermes_std PUBLIC include)
+target_link_libraries(hermes_std PUBLIC hermes)
+target_link_libraries(hermes_std PRIVATE stdex)
+# Let's apply nncc common compile options
+#
+# NOTE This will enable strict compilation (warnings as error).
+# Please refer to the top-level CMakeLists.txt for details
+target_link_libraries(hermes_std PRIVATE nncc_common)
+target_link_libraries(hermes_std PUBLIC nncc_coverage)
+
+if(NOT ENABLE_TEST)
+ return()
+endif(NOT ENABLE_TEST)
+
+# Google Test is mandatory for internal testing
+nncc_find_package(GTest REQUIRED)
+
+GTest_AddTest(hermes_std_test ${TESTS})
+target_link_libraries(hermes_std_test stdex)
+target_link_libraries(hermes_std_test hermes_std)
--- /dev/null
+# hermes-std
+
+_hermes-std_ is a collection of **primitive** _hermes_ extensions.
--- /dev/null
+/*
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
+ *
+ * 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.
+ */
+
+#ifndef __HERMES_STD_CONSOLE_REPORTER_H__
+#define __HERMES_STD_CONSOLE_REPORTER_H__
+
+#include <hermes.h>
+
+namespace hermes
+{
+
+/**
+ * @brief Print messages into standard console
+ */
+struct ConsoleReporter final : public hermes::Sink
+{
+ void notify(const Message *m) final;
+};
+
+} // namespace hermes
+
+#endif // __HERMES_STD_CONSOLE_REPORTER_H__
--- /dev/null
+/*
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
+ *
+ * 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 "hermes/ConsoleReporter.h"
+
+#include <iostream>
+
+namespace hermes
+{
+
+void ConsoleReporter::notify(const hermes::Message *m)
+{
+ for (uint32_t n = 0; n < m->text()->lines(); ++n)
+ {
+ std::cout << m->text()->line(n) << std::endl;
+ }
+}
+
+} // namespace hermes
--- /dev/null
+/*
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
+ *
+ * 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 "hermes/ConsoleReporter.h"
+
+#include <stdex/Memory.h>
+
+#include <sstream>
+
+#include <gtest/gtest.h>
+
+TEST(ConsoleReporterTest, constructor)
+{
+ hermes::ConsoleReporter r;
+
+ SUCCEED();
+}
+
+TEST(ConsoleReporterTest, notify)
+{
+ hermes::Message m;
+ {
+ std::stringstream ss;
+
+ ss << "Hello" << std::endl;
+
+ m.text(stdex::make_unique<hermes::MessageText>(ss));
+ }
+
+ hermes::ConsoleReporter r;
+
+ ASSERT_NO_THROW(r.notify(&m));
+}