2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 * @file BaseAttribute.cpp
20 * @author Lukasz Marek (l.marek@samsung.com)
28 #include <ace-dao-ro/BaseAttribute.h>
32 const char* BaseAttribute::typeToString(Type type)
34 const char * ret = NULL;
42 case Type::Environment:
53 std::string BaseAttribute::toString() const
56 const char * SEPARATOR = ";";
59 ret.append(SEPARATOR);
60 ret.append(typeToString(m_typeId));
61 ret.append(SEPARATOR);
62 if (m_undetermindState) {
67 ret.append(SEPARATOR);
68 for (std::list<std::string>::const_iterator it = value.begin();
71 std::stringstream num;
73 ret.append(num.str());
74 ret.append(SEPARATOR);
76 ret.append(SEPARATOR);