yast2-core
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
libycp
src
include
ycp
YCPFloat.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: YCPFloat.h
14
15
Author: Mathias Kettner <kettner@suse.de>
16
Maintainer: Thomas Roelz <tom@suse.de>
17
18
/-*/
19
// -*- c++ -*-
20
21
#ifndef YCPFloat_h
22
#define YCPFloat_h
23
24
25
#include "
YCPValue.h
"
26
27
38
class
YCPFloatRep
:
public
YCPValueRep
39
{
40
double
v
;
41
42
protected
:
43
friend
class
YCPFloat
;
44
49
YCPFloatRep
(
double
v
);
50
55
YCPFloatRep
(
const
char
*r);
56
57
public
:
62
double
value
()
const
;
63
71
YCPOrder
compare
(
const
YCPFloat
&
v
)
const
;
72
81
string
toString
()
const
;
82
86
std::ostream &
toStream
(std::ostream &
str
)
const
;
87
std::ostream &
toXml
(std::ostream &
str
,
int
indent )
const
;
88
92
YCPValueType
valuetype
()
const
;
93
};
94
101
class
YCPFloat
:
public
YCPValue
102
{
103
DEF_COMMON
(Float, Value);
104
public
:
105
YCPFloat
(
double
v) :
YCPValue
(new
YCPFloatRep
(v)) {}
106
YCPFloat
(
const
char
*r) :
YCPValue
(new
YCPFloatRep
(r)) {}
107
YCPFloat
(
bytecodeistream
&
str
);
108
};
109
110
#endif // YCPFloat_h
Generated on a sunny day for yast2-core by
1.8.2