yast2-core
YCPVoid.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: YCPVoid.h
14 
15  Author: Mathias Kettner <kettner@suse.de>
16  Maintainer: Thomas Roelz <tom@suse.de>
17 
18 /-*/
19 // -*- c++ -*-
20 
21 #ifndef YCPVoid_h
22 #define YCPVoid_h
23 
24 
25 #include "YCPValue.h"
26 
34 class YCPVoidRep : public YCPValueRep
35 {
36 protected:
37  friend class YCPVoid;
38 
42  YCPVoidRep();
43 
44 public:
49  string toString() const;
50 
54  std::ostream & toStream (std::ostream & str) const;
55  std::ostream & toXml (std::ostream & str, int indent ) const;
56 
60  YCPValueType valuetype() const;
61 
66  YCPOrder compare(const YCPVoid &v) const;
67 };
68 
75 class YCPVoid : public YCPValue
76 {
77  DEF_COMMON(Void, Value);
78 
79  static YCPVoid* nil;
80 public:
81  YCPVoid();
83 };
84 #endif // YCPVoid_h
#define str
Definition: scanner.cc:997
YCPValueType valuetype() const
Definition: YCPVoid.cc:40
YCPValueType
Value Type Defines constants for the Value types. The Value type specifies the class the YCPValueRep ...
Definition: YCPValue.h:36
string toString() const
Definition: YCPVoid.cc:33
DEF_COMMON(Void, Value)
YCPOrder
Definition: YCPValue.h:57
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YCPVoid.cc:62
YCPVoidRep()
Definition: YCPVoid.cc:27
YCPOrder compare(const YCPVoid &v) const
Definition: YCPVoid.cc:47
Abstract base class of all YCP values. Abstract base class of all YCP elements that can be used as pr...
Definition: YCPValue.h:71
Wrapper for YCPVoidRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPVoidRep with the arrow operator. See YCPVoidRep.
Definition: YCPVoid.h:75
Wrapper for YCPValueRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPValueRep with the arrow operator. See YCPValueRep.
Definition: YCPValue.h:275
YCPValueRep representing a void value.
Definition: YCPVoid.h:34
An istream that remembers some data about the bytecode.
Definition: Bytecode.h:42
std::ostream & toStream(std::ostream &str) const
Definition: YCPVoid.cc:56
YCPVoid()
Definition: YCPVoid.cc:72
static YCPVoid * nil
Definition: YCPVoid.h:79

Generated on a sunny day for yast2-core by doxygen 1.8.6