yast2-core
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
libycp
src
include
ycp
YCPInteger.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| |
3
| __ __ ____ _____ ____ |
4
| \ \ / /_ _/ ___|_ _|___ \ |
5
| \ V / _` \___ \ | | __) | |
6
| | | (_| |___) || | / __/ |
7
| |_|\__,_|____/ |_| |_____| |
8
| |
9
| core system |
10
| (C) SuSE GmbH |
11
\----------------------------------------------------------------------/
12
13
File: YCPInteger.h
14
15
Author: Mathias Kettner <kettner@suse.de>
16
Maintainer: Thomas Roelz <tom@suse.de>
17
18
/-*/
19
// -*- c++ -*-
20
21
#ifndef YCPInteger_h
22
#define YCPInteger_h
23
24
25
#include "
YCPValue.h
"
26
27
33
class
YCPIntegerRep
:
public
YCPValueRep
34
{
35
long
long
v
;
36
37
protected
:
38
friend
class
YCPInteger
;
39
43
YCPIntegerRep
(
long
long
v
);
44
49
YCPIntegerRep
(
const
char
*r,
bool
*valid);
50
51
public
:
56
long
long
value
()
const
;
57
65
YCPOrder
compare
(
const
YCPInteger
&
v
)
const
;
66
71
string
toString
()
const
;
72
76
std::ostream &
toStream
(std::ostream &
str
)
const
;
77
std::ostream &
toXml
(std::ostream &
str
,
int
indent )
const
;
78
82
YCPValueType
valuetype
()
const
;
83
84
};
85
92
class
YCPInteger
:
public
YCPValue
93
{
94
DEF_COMMON
(Integer, Value);
95
public
:
96
YCPInteger
(
long
long
v) :
YCPValue
(new
YCPIntegerRep
(v)) {}
97
YCPInteger
(
const
char
*r,
bool
*valid = NULL) :
YCPValue
(new
YCPIntegerRep
(r, valid)) {}
98
YCPInteger
(
bytecodeistream
&
str
);
99
};
100
101
#endif // YCPInteger_h
Generated on a sunny day for yast2-core by
1.8.2