summaryrefslogtreecommitdiffstats
path: root/include/plist/Integer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/plist/Integer.h')
-rw-r--r--include/plist/Integer.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/include/plist/Integer.h b/include/plist/Integer.h
index 7cdf0df..1a4d980 100644
--- a/include/plist/Integer.h
+++ b/include/plist/Integer.h
@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PLIST__INTEGER_H
-#define PLIST__INTEGER_H
+#ifndef PLIST_INTEGER_H
+#define PLIST_INTEGER_H
#include <plist/Node.h>
@@ -32,17 +32,23 @@ class Integer : public Node
public :
Integer(Node* parent = NULL);
Integer(plist_t node, Node* parent = NULL);
- Integer(Integer& i);
- Integer& operator=(Integer& i);
+ Integer(const Integer& i);
+ Integer& operator=(const Integer& i);
Integer(uint64_t i);
+ Integer(int64_t i);
virtual ~Integer();
- Node* Clone();
+ Node* Clone() const;
+ void SetValue(int64_t i);
void SetValue(uint64_t i);
- uint64_t GetValue();
+ void SetUnsignedValue(uint64_t i);
+ int64_t GetValue() const;
+ uint64_t GetUnsignedValue() const;
+
+ bool isNegative() const;
};
};
-#endif // PLIST__INTEGER_H
+#endif // PLIST_INTEGER_H