summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/doc
diff options
context:
space:
mode:
authorAlexander Kutsan <AKutsan@luxoft.com>2016-11-28 16:22:27 +0200
committerAlexander Kutsan <AKutsan@luxoft.com>2016-12-05 09:33:20 +0200
commit049a16e6d2aeb55d0abd55cdc7ac50a69e0e8c32 (patch)
tree8dfa27238c88f8d988d5a673e25b1c371920a865 /src/components/policy/policy_external/doc
parent94be7067ee72ec0c17aed74924a8ac8f9e9a4eb0 (diff)
downloadsdl_core-049a16e6d2aeb55d0abd55cdc7ac50a69e0e8c32.tar.gz
Removed redundant doxygen file
Diffstat (limited to 'src/components/policy/policy_external/doc')
-rw-r--r--src/components/policy/policy_external/doc/doxygen/components/SmartObjects/Smart Objects Types/Type casts.txt204
1 files changed, 0 insertions, 204 deletions
diff --git a/src/components/policy/policy_external/doc/doxygen/components/SmartObjects/Smart Objects Types/Type casts.txt b/src/components/policy/policy_external/doc/doxygen/components/SmartObjects/Smart Objects Types/Type casts.txt
deleted file mode 100644
index 3ae636c925..0000000000
--- a/src/components/policy/policy_external/doc/doxygen/components/SmartObjects/Smart Objects Types/Type casts.txt
+++ /dev/null
@@ -1,204 +0,0 @@
-/*! \page components_smartobjects_types_cast Type cast for SmartObjects
-
-One of easy and probably intuitive way to work with values in the Smart Object is simple use of the type casts. Implementation of NsSmartDeviceLink::NsSmartObjects::CSmartObject class has all necessary declarations to support all required types.
-
-Example 1 (Work with int value):
-
-<pre>
-NsSmartDeviceLink::NsSmartObjects::CSmartObject obj;
-
-obj = 1; //Assign int value
-
-int i = (int)obj; //Get int value
-
-</pre>
-
-Example 2 (Work with long value):
-
-<pre>
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject obj;
-
-obj = 100l; //Assign long value
-
-long l = (long)obj; //Get long value
-
-</pre>
-
-Example 3 (Work with double value):
-
-<pre>
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject obj;
-
-obj = 3.14; //Assign double value
-
-double d = (double)obj; //Get double value
-
-</pre>
-
-Example 4 (Work with char value):
-
-<pre>
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject obj;
-
-obj = 'a'; //Assign char value
-
-char c = (char)obj; //Get char value
-
-</pre>
-
-Example 5 (Work with bool value):
-
-<pre>
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject obj;
-
-obj = true; //Assign bool value
-
-bool b = (bool)obj; //Get bool value
-
-</pre>
-
-Example 6 (Work with string values):
-
-<pre>
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject obj1;
-
-obj1 = "Hello, world"; //Assign char* string value
-
-obj2 = std::string("Hello, world"); //Assign std::string value
-
-std::string s1 = (std::string)obj1;
-
-std::string s2 = (std::string)obj2;
-
-</pre>
-
-Example 7 (Work with arrays):
-
-<pre>
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject simpleArray;
-
-simpleArray[0] = 1;
-
-simpleArray[1] = true;
-
-simpleArray[2] = 'a';
-
-simpleArray[3] = 3.14;
-
-int val0 = (int)simpleArray[0];
-
-bool val1 = (bool)simpleArray[1];
-
-char val2 = (char)simpleArray[2];
-
-double val3 = (double)simpleArray[3];
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject deepArray;
-
-deepArray[0] = 1;
-
-deepArray[1][0] = 3.14;
-
-deepArray[1][1][0] = true;
-
-int val0 = (int)obj[0];
-
-double val1_0 = (double)obj[1][0];
-
-bool val1_1_0 = (bool)obj[1][1][0];
-
-</pre>
-
-
-Example 8 (Work with maps):
-
-<pre>
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject simpleMap;
-
-simpleMap["name"] = "My name";
-
-simpleMap["count"] = 10;
-
-simpleMap["isValid"] = true;
-
-std::string name = (std::string)obj["name"];
-
-int count = (int)obj["count"];
-
-bool isValid = (bool)obj["isValid"];
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject deepMap;
-
-deepMap["request"]["name"] = "My Request";
-
-deepMap["request"]["id"] = 123;
-
-deepMap["response"]["name"] = "My Response";
-
-deepMap["response"]["id"] = 456;
-
-deepMap["we"]["need"]["to"]["go"]["deeper"] = true;
-
-std::string requestName = (std::string)deepMap["request"]["name"];
-
-int requestId = (int)deepMap["request"]["id"];
-
-std::string responseName = (std::string)deepMap["response"]["name"];
-
-int responseId = (int)deepMap["response"]["id"];
-
-deepFlag = (bool)deepMap["we"]["need"]["to"]["go"]["deeper"];
-
-</pre>
-
-
-Example 9 (Removing elements from Map):
-
-<pre>
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject mapObj;
-
-mapObj["first"] = "first value";
-mapObj["second"] = "second value";
-mapObj["to delete"] = 1234;
-mapObj["third"] = "third value";
-
-bool result = mapObj.erase("to delete");
-
-</pre>
-
-
-Example 10 (Using alternative method of accessing SmartObject values)
-
-<pre>
-
-NsSmartDeviceLink::NsSmartObjects::CSmartObject obj;
-
-obj = 1; //Assign int value
-int i = obj.asInt(); //Get int value
-
-obj = 100l; //Assign long value
-long l = obj.asLong(); //Get long value
-
-obj = 3.14; //Assign double value
-double d = obj.asDouble(); //Get double value
-
-obj = true;
-bool b = obj.asBool(); // Get bool value
-
-obj = 'c';
-char c = obj.asChar(); // Get char value
-
-obj = "some string";
-std::string str = obj.asString(); // Get string value
-
-</pre>
-
-*/