#include <string>
#include <map>
#include <ContextStoreTypesPrivate.h>
-#include <ContextStoreUtil.h>
#include <context_store_internal.h>
#include "ContextStore.h"
#include "ContextStoreManager.h"
#include <sstream>
#include <regex>
#include <dirent.h>
-#include <PathUtil.h>
+#include <ServerUtil.h>
#include "DatabaseManager.h"
#include "Schema.h"
#include "SchemaChecker.h"
bool SchemaLoader::__createMetadataTables()
{
- std::string path = PathUtil::getSystemPath(TZ_SYS_DATA, BASE_PATH "/init.sql");
+ std::string path = util::getSystemPath(TZ_SYS_DATA, BASE_PATH "/init.sql");
IF_FAIL_RETURN(!path.empty(), false);
std::ifstream inFile(path);
std::string SystemSchemaLoader::__getSchemaDir()
{
- return PathUtil::getSystemPath(TZ_SYS_DATA, BASE_PATH "/system");
+ return util::getSystemPath(TZ_SYS_DATA, BASE_PATH "/system");
}
std::string UserSchemaLoader::__getSchemaDir()
{
- return PathUtil::getSystemPath(TZ_SYS_DATA, BASE_PATH "/user");
+ return util::getSystemPath(TZ_SYS_DATA, BASE_PATH "/user");
}
* limitations under the License.
*/
-#include <ContextStoreUtil.h>
#include "DatabaseManager.h"
#include "UserStore.h"
#include "SystemStore.h"
#define __CONTEXT_STORE_TYPES_PRIVATE_H__
#include <ContextTypes.h>
-#include <ContextErrorUtil.h>
+#include <SharedUtil.h>
#define CTX_CONTEXT_STORE "ContextStore"
#define CTX_CONTEXT_STORE_SPEC \
+++ /dev/null
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * 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 "ContextStoreTypesPrivate.h"
-#include "ContextStoreUtil.h"
-
-using namespace ctx;
-
-std::vector<std::string> util::tokenizeString(std::string& in, const char* delim)
-{
- std::vector<std::string> tokens;
- std::size_t begin = 0;
- std::size_t end = in.find(delim, 0);
-
- while (end != std::string::npos) {
- tokens.push_back(in.substr(begin, end - begin));
- begin = end + 1;
- end = in.find(delim, begin);
- }
-
- return tokens;
-}
+++ /dev/null
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * 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 __CONTEXT_STORE_UTIL_H__
-#define __CONTEXT_STORE_UTIL_H__
-
-#include <vector>
-#include <string>
-
-namespace ctx { namespace util {
-
- std::vector<std::string> tokenizeString(std::string& in, const char* delim);
-
-} }
-
-#endif