Enable build with iniparser v 3.1
[platform/framework/native/appfw.git] / inc / FBaseNumber.h
index 1a55b74..0e16193 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -28,7 +27,6 @@
 #include <FBaseObject.h>
 #include <FBaseString.h>
 
-
 namespace Tizen { namespace Base
 {
 /**
@@ -77,11 +75,16 @@ public:
        virtual ~Number(void) { };
 
        /**
-        *      Gets the @c signed @c char equivalent of the current instance of the %Number class.
+        *      Gets the @c char equivalent of the current instance of the %Number class.
         *
         *      @since 2.0
+        *      @brief  <i> [Deprecated] </i>
+        *
+        *      @deprecated     This method has portability issue.
+        *                      Return value may not be @c signed @c char since char is treated as unsigned char in ARM architecture. @n
+        *                      Use ToInt8() method to get @c int8_t
         *
-        *      @return         The @c signed @c char equivalent of the current instance
+        *      @return         The @c char equivalent of the current instance
         */
        virtual char ToChar(void) const = 0;
 
@@ -148,6 +151,18 @@ public:
         */
        virtual String ToString(void) const = 0;
 
+       /**
+        *      Gets the @c int8_t equivalent of the current instance of the %Number class.
+        *
+        *      @since 3.0
+        *
+        *      @return         The @c int8_t equivalent of the current instance
+        */
+       virtual int8_t ToInt8(void) const
+       {
+               return 0;
+       }
+
 protected:
        //
        // This method is for internal use only. Using this method can cause behavioral, security-related,
@@ -158,15 +173,6 @@ protected:
        //
        virtual void Number_Reserved1(void) { }
 
-       //
-       // This method is for internal use only. Using this method can cause behavioral, security-related,
-       // and consistency-related issues in the application.
-       // This method is reserved and may change its name at any time without prior notice.
-       //
-       // @since 2.0
-       //
-       virtual void Number_Reserved2(void) { }
-
 }; // Number
 
 }}   // Tizen::Base