yast2-core
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
libycp
src
include
ycp
YCPSymbol.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: YCPSymbol.h
14
15
Author: Mathias Kettner <kettner@suse.de>
16
Maintainer: Klaus Kaempf <kkaempf@suse.de>
17
18
/-*/
19
// -*- c++ -*-
20
21
#ifndef YCPSymbol_h
22
#define YCPSymbol_h
23
24
25
#include "
YCPValue.h
"
26
#include <
y2util/Ustring.h
>
27
28
40
class
YCPSymbolRep
:
public
YCPValueRep
41
{
42
Ustring
v
;
43
44
protected
:
45
friend
class
YCPSymbol
;
46
50
YCPSymbolRep
(
const
char
*s);
51
55
YCPSymbolRep
(
string
s);
56
57
public
:
61
string
symbol
()
const
;
62
66
const
char
*
symbol_cstr
()
const
;
67
76
YCPOrder
compare
(
const
YCPSymbol
&
v
)
const
;
77
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
YCPSymbol
:
public
YCPValue
102
{
103
DEF_COMMON
(Symbol, Value);
104
public
:
105
YCPSymbol
(
const
char
*s) :
YCPValue
(new
YCPSymbolRep
(s)) {}
106
YCPSymbol
(
string
s) :
YCPValue
(new
YCPSymbolRep
(s)) {}
107
YCPSymbol
(
bytecodeistream
&
str
);
108
};
109
110
#endif // YCPSymbol_h
Generated on a sunny day for yast2-core by
1.8.2