Debian Codegraph @

src/misc.cpp

raw symbols SCIP
1 /***************************************************************************
2 misc.cpp
3 -------------------
4 A generic ingredient class
5 -------------------
6 Copyright 1999-2008, David Johnson
7 Please see the header file for copyright and license information
8 ***************************************************************************/
9
10 #include <QStringList>
11 #include "resource.h"cxx . . $ `<file>/src/resource.h`/
12 #include "misc.h"cxx . . $ `<file>/src/misc.h`/
13
14 using namespace Resource;
15
16 const QByteArraycxx . . $ QByteArray# Misccxx . . $ Misc#::YEAST_STRINGcxx . . $ Misc#YEAST_STRING. = QT_TRANSLATE_NOOPcxx . . $ `<external>/15045578679651060896/qglobal.h:1182:9`!("misc", "Yeast");
17 const QByteArraycxx . . $ QByteArray# Misccxx . . $ Misc#::FINING_STRINGcxx . . $ Misc#FINING_STRING. = QT_TRANSLATE_NOOPcxx . . $ `<external>/15045578679651060896/qglobal.h:1182:9`!("misc", "Fining");
18 const QByteArraycxx . . $ QByteArray# Misccxx . . $ Misc#::HERB_STRINGcxx . . $ Misc#HERB_STRING. = QT_TRANSLATE_NOOPcxx . . $ `<external>/15045578679651060896/qglobal.h:1182:9`!("misc", "Herb");
19 const QByteArraycxx . . $ QByteArray# Misccxx . . $ Misc#::SPICE_STRINGcxx . . $ Misc#SPICE_STRING. = QT_TRANSLATE_NOOPcxx . . $ `<external>/15045578679651060896/qglobal.h:1182:9`!("misc", "Spice");
20 const QByteArraycxx . . $ QByteArray# Misccxx . . $ Misc#::FLAVOR_STRINGcxx . . $ Misc#FLAVOR_STRING. = QT_TRANSLATE_NOOPcxx . . $ `<external>/15045578679651060896/qglobal.h:1182:9`!("misc", "Flavor");
21 const QByteArraycxx . . $ QByteArray# Misccxx . . $ Misc#::ADDITIVE_STRINGcxx . . $ Misc#ADDITIVE_STRING. = QT_TRANSLATE_NOOPcxx . . $ `<external>/15045578679651060896/qglobal.h:1182:9`!("misc", "Additive");
22 const QByteArraycxx . . $ QByteArray# Misccxx . . $ Misc#::OTHER_STRINGcxx . . $ Misc#OTHER_STRING. = QT_TRANSLATE_NOOPcxx . . $ `<external>/15045578679651060896/qglobal.h:1182:9`!("misc", "Other");
23
24 //////////////////////////////////////////////////////////////////////////////
25 // Misc()
26 // ------
27 // constructor
28
29 Misccxx . . $ Misc#::Misccxx . . $ Misc#Misc(49f6e7a06ebc5aa8).()
30 : name_cxx . . $ Misc#name_.(QObjectcxx . . $ QObject#::trcxx . . $ QObject#tr(75d9f1c324b4579d).("Generic")), quantity_cxx . . $ Misc#quantity_.(), type_cxx . . $ Misc#type_.(OTHER_STRINGcxx . . $ Misc#OTHER_STRING.), notes_cxx . . $ Misc#notes_.()
31 { ; }
32
33 Misccxx . . $ Misc#::Misccxx . . $ Misc#Misc(7415d5dc4237b0d8).(const QStringcxx . . $ QString# &name, const Quantitycxx . . $ Quantity# &quantity, const QStringcxx . . $ QString# &typ,
34 const QStringcxx . . $ QString# &notes)
35 : name_cxx . . $ Misc#name_.(name), quantity_cxx . . $ Misc#quantity_.(quantity), type_cxx . . $ Misc#type_.(typ),
36 notes_cxx . . $ Misc#notes_.(notes)
37 { ; }
38
39 Misccxx . . $ Misc#::~cxx . . $ Misc#`~Misc`(ced63f7c635d850d).Misccxx . . $ Misc#() { ; }
40
41 //////////////////////////////////////////////////////////////////////////////
42 // Misc()
43 // ------
44 // copy constructor
45
46 Misccxx . . $ Misc#::Misccxx . . $ Misc#Misc(9f5928fef634771).(const Misccxx . . $ Misc# &m)
47 : name_cxx . . $ Misc#name_.(m.name_cxx . . $ Misc#name_.), quantity_cxx . . $ Misc#quantity_.(m.quantity_cxx . . $ Misc#quantity_.), type_cxx . . $ Misc#type_.(m.type_cxx . . $ Misc#type_.), notes_cxx . . $ Misc#notes_.(m.notes_cxx . . $ Misc#notes_.)
48 { ; }
49
50 //////////////////////////////////////////////////////////////////////////////
51 // operator=()
52 // -----------
53 // Assignment operator
54
55 Misccxx . . $ Misc# Misccxx . . $ Misc#::operatorcxx . . $ Misc#`operator=`(3dcb871d488786fb).=(const Misccxx . . $ Misc# &m)
56 {
57 if (this != &m) {
58 name_cxx . . $ Misc#name_. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). m.name_cxx . . $ Misc#name_.;
59 quantity_cxx . . $ Misc#quantity_. =cxx . . $ Quantity#`operator=`(3ef0f3c5d324c832). m.quantity_cxx . . $ Misc#quantity_.;
60 type_cxx . . $ Misc#type_. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). m.type_cxx . . $ Misc#type_.;
61 notes_cxx . . $ Misc#notes_. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). m.notes_cxx . . $ Misc#notes_.;
62 }
63 return *cxx . . $ Misc#Misc(9f5928fef634771).this;
64 }
65
66 //////////////////////////////////////////////////////////////////////////////
67 // operator==()
68 // -----------
69 // Equivalence operator
70
71 bool Misccxx . . $ Misc#::operatorcxx . . $ Misc#`operator==`(24b2ce2e9bd87498).==(const Misccxx . . $ Misc# &m) const
72 {
73 return (name_cxx . . $ Misc#name_. ==cxx . . $ `operator==`(5bc2975d2d751687). m.name_cxx . . $ Misc#name_.)
74 && (quantity_cxx . . $ Misc#quantity_. ==cxx . . $ Quantity#`operator==`(bc25df371a14fcfa). m.quantity_cxx . . $ Misc#quantity_.)
75 && (type_cxx . . $ Misc#type_. ==cxx . . $ `operator==`(5bc2975d2d751687). m.type_cxx . . $ Misc#type_.)
76 && (notes_cxx . . $ Misc#notes_. ==cxx . . $ `operator==`(5bc2975d2d751687). m.notes_cxx . . $ Misc#notes_.);
77 }
78
79 ///////////////////////////////////////////////////////////////////////////////
80 // typeStringList()
81 // ----------------
82 // Return string list of misc types
83
84 QStringListcxx . . $ QStringList# Misccxx . . $ Misc#::typeStringListcxx . . $ Misc#typeStringList(669a05bc42dd57cc).()
85 {
86 return (QStringListcxx . . $ QStringList#QStringList(ced63f7c635d850d).()
87 <<cxx . . $ QStringList#`operator<<`(85116071a693d053). YEAST_STRINGcxx . . $ QString#QString(45672f3c6961a244).
88 <<cxx . . $ QStringList#`operator<<`(85116071a693d053). FINING_STRINGcxx . . $ QString#QString(45672f3c6961a244).
89 <<cxx . . $ QStringList#`operator<<`(85116071a693d053). HERB_STRINGcxx . . $ QString#QString(45672f3c6961a244).
90 <<cxx . . $ QStringList#`operator<<`(85116071a693d053). SPICE_STRINGcxx . . $ QString#QString(45672f3c6961a244).
91 <<cxx . . $ QStringList#`operator<<`(85116071a693d053). FLAVOR_STRINGcxx . . $ QString#QString(45672f3c6961a244).
92 <<cxx . . $ QStringList#`operator<<`(85116071a693d053). ADDITIVE_STRINGcxx . . $ QString#QString(45672f3c6961a244).
93 <<cxx . . $ QStringList#`operator<<`(85116071a693d053). OTHER_STRINGcxx . . $ QString#QString(45672f3c6961a244).);
94 }