diff --git a/include/rosa/config/project_path.hpp b/include/rosa/config/project_path.hpp index e384fd1..e2c1993 100644 --- a/include/rosa/config/project_path.hpp +++ b/include/rosa/config/project_path.hpp @@ -1,50 +1,52 @@ /******************************************************************************* * * File: project_path.hpp * * Contents: Facility for compile-time manipulation of paths. * * Copyright 2017 * * Author: David Juhasz (david.juhasz@tuwien.ac.at) * ******************************************************************************/ #ifndef ROSA_CONFIG_PROJECT_PATH_HPP #define ROSA_CONFIG_PROJECT_PATH_HPP #include "rosa/config/rosa_config.h" +#include + namespace rosa { // Nested namespace containing the implementation of the provided features, // not supposed to be used directly. namespace impl { // Implementation of the static search for the project-relative part of an // absolute path. constexpr size_t project_relative_path_index_impl(const char *const path, const char *const project = ROSA_SRC_DIR, const size_t index = 0) { return project[index] == '\0' ? index // Found it. : (path[index] == '\0' || project[index] != path[index]) ? 0 // Path is not under project. : project_relative_path_index_impl( path, project, index + 1); // Continue searching... } } // End namespace impl // Staticaly finds the index of the project-relative part of a absolute path. // Returns 0 if the absolute path is not located under the project directory. constexpr size_t project_relative_path_index(const char * const path) { return impl::project_relative_path_index_impl(path); } } // End namespace rosa #endif // ROSA_CONFIG_PROJECT_PATH_HPP diff --git a/lib/config/CMakeLists.txt b/lib/config/CMakeLists.txt index abea00b..bf57ce2 100644 --- a/lib/config/CMakeLists.txt +++ b/lib/config/CMakeLists.txt @@ -1,3 +1,6 @@ add_library(ROSAConfig + project_path.cpp + config.cpp version.cpp ) + diff --git a/lib/config/config.cpp b/lib/config/config.cpp new file mode 100644 index 0000000..5b8d881 --- /dev/null +++ b/lib/config/config.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * + * File: config.cpp + * + * Contents: Implementation of config features. + * + * Copyright 2017 + * + * Author: David Juhasz (david.juhasz@tuwien.ac.at) + * + ******************************************************************************/ + +#include "rosa/config/config.h" + +// NOTE: Empty implementation, source file here to have a compile database +// entry for config. + diff --git a/lib/config/project_path.cpp b/lib/config/project_path.cpp new file mode 100644 index 0000000..60a654d --- /dev/null +++ b/lib/config/project_path.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * + * File: project_path.cpp + * + * Contents: Implementation of project_path features. + * + * Copyright 2017 + * + * Author: David Juhasz (david.juhasz@tuwien.ac.at) + * + ******************************************************************************/ + +#include "rosa/config/project_path.hpp" + +// NOTE: Empty implementation, source file here to have a compile database +// entry for project_path. + diff --git a/lib/core/AbstractAgent.cpp b/lib/core/AbstractAgent.cpp new file mode 100644 index 0000000..d087028 --- /dev/null +++ b/lib/core/AbstractAgent.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * + * File: AbstractAgent.cpp + * + * Contents: Implementation of AbstractAgent. + * + * Copyright 2017 + * + * Author: David Juhasz (david.juhasz@tuwien.ac.at) + * + ******************************************************************************/ + +#include "rosa/core/AbstractAgent.hpp" + +// NOTE: Empty implementation, source file here to have a compile database +// entry for AbstractAgent. + diff --git a/lib/core/CMakeLists.txt b/lib/core/CMakeLists.txt index d9e04ba..9ec710a 100644 --- a/lib/core/CMakeLists.txt +++ b/lib/core/CMakeLists.txt @@ -1,16 +1,17 @@ add_library(ROSACore Unit.cpp System.cpp SystemBase.cpp SystemImpl.cpp Message.cpp Invoker.cpp MessageHandler.cpp + AbstractAgent.cpp Agent.cpp AgentHandle.cpp MessagingSystem.cpp MessagingSystemImpl.cpp ) ROSA_add_library_dependencies(ROSACore ROSASupport) diff --git a/lib/support/CMakeLists.txt b/lib/support/CMakeLists.txt index d7448ea..ee43733 100644 --- a/lib/support/CMakeLists.txt +++ b/lib/support/CMakeLists.txt @@ -1,8 +1,15 @@ add_library(ROSASupport debug.cpp terminal_colors.cpp log.cpp + math.cpp + type_helper.cpp + types.cpp atom.cpp + type_pair.cpp + type_list.cpp + squashed_int.cpp + type_numbers.cpp type_token.cpp ) diff --git a/lib/support/math.cpp b/lib/support/math.cpp new file mode 100644 index 0000000..0142f0c --- /dev/null +++ b/lib/support/math.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * + * File: math.cpp + * + * Contents: Implementation of math features. + * + * Copyright 2017 + * + * Author: David Juhasz (david.juhasz@tuwien.ac.at) + * + ******************************************************************************/ + +#include "rosa/support/math.hpp" + +// NOTE: Empty implementation, source file here to have a compile database +// entry for math. + diff --git a/lib/support/squashed_int.cpp b/lib/support/squashed_int.cpp new file mode 100644 index 0000000..3feb052 --- /dev/null +++ b/lib/support/squashed_int.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * + * File: squashed_int.cpp + * + * Contents: Implementation of squashed_int features. + * + * Copyright 2017 + * + * Author: David Juhasz (david.juhasz@tuwien.ac.at) + * + ******************************************************************************/ + +#include "rosa/support/squashed_int.hpp" + +// NOTE: Empty implementation, source file here to have a compile database +// entry for squashed_int. + diff --git a/lib/support/type_helper.cpp b/lib/support/type_helper.cpp new file mode 100644 index 0000000..758ed6a --- /dev/null +++ b/lib/support/type_helper.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * + * File: type_helper.cpp + * + * Contents: Implementation of type_helper features. + * + * Copyright 2017 + * + * Author: David Juhasz (david.juhasz@tuwien.ac.at) + * + ******************************************************************************/ + +#include "rosa/support/type_helper.hpp" + +// NOTE: Empty implementation, source file here to have a compile database +// entry for type_helper. + diff --git a/lib/support/type_list.cpp b/lib/support/type_list.cpp new file mode 100644 index 0000000..545586a --- /dev/null +++ b/lib/support/type_list.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * + * File: type_list.cpp + * + * Contents: Implementation of type_list features. + * + * Copyright 2017 + * + * Author: David Juhasz (david.juhasz@tuwien.ac.at) + * + ******************************************************************************/ + +#include "rosa/support/type_list.hpp" + +// NOTE: Empty implementation, source file here to have a compile database +// entry for type_list. + diff --git a/lib/support/type_numbers.cpp b/lib/support/type_numbers.cpp new file mode 100644 index 0000000..a4168e0 --- /dev/null +++ b/lib/support/type_numbers.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * + * File: type_numbers.cpp + * + * Contents: Implementation of type_numbers features. + * + * Copyright 2017 + * + * Author: David Juhasz (david.juhasz@tuwien.ac.at) + * + ******************************************************************************/ + +#include "rosa/support/type_numbers.hpp" + +// NOTE: Empty implementation, source file here to have a compile database +// entry for type_numbers. + diff --git a/lib/support/type_pair.cpp b/lib/support/type_pair.cpp new file mode 100644 index 0000000..2ff0f5f --- /dev/null +++ b/lib/support/type_pair.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * + * File: type_pair.cpp + * + * Contents: Implementation of type_pair features. + * + * Copyright 2017 + * + * Author: David Juhasz (david.juhasz@tuwien.ac.at) + * + ******************************************************************************/ + +#include "rosa/support/type_pair.hpp" + +// NOTE: Empty implementation, source file here to have a compile database +// entry for type_pair. + diff --git a/lib/support/types.cpp b/lib/support/types.cpp new file mode 100644 index 0000000..ddc91bd --- /dev/null +++ b/lib/support/types.cpp @@ -0,0 +1,17 @@ +/******************************************************************************* + * + * File: types.cpp + * + * Contents: Implementation of types features. + * + * Copyright 2017 + * + * Author: David Juhasz (david.juhasz@tuwien.ac.at) + * + ******************************************************************************/ + +#include "rosa/support/types.hpp" + +// NOTE: Empty implementation, source file here to have a compile database +// entry for types. +