/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
{
Property::Key::Key( const std::string& key )
-: type(Key::STRING),
+: type( Key::STRING ),
indexKey( Property::INVALID_INDEX ),
stringKey( key )
{
}
Property::Key::Key( Property::Index key )
-: type(Key::INDEX),
+: type( Key::INDEX ),
indexKey( key )
{
}
+Property::Key::Key( const char * key )
+: type( Key::STRING ),
+ indexKey( Property::INVALID_INDEX ),
+ stringKey( key )
+{
+}
+
bool Property::Key::operator== (const std::string& rhs)
{
bool result=false;
return result;
}
+bool Property::Key::operator== ( const char* rhs )
+{
+ return operator==( std::string( rhs ) );
+}
+
bool Property::Key::operator== (Property::Index rhs)
{
bool result=false;
return !operator==(rhs);
}
+bool Property::Key::operator!= ( const char* rhs )
+{
+ return !operator==(rhs);
+}
+
bool Property::Key::operator!= (Property::Index rhs)
{
return !operator==(rhs);