| 1 | /* handicap.cpp */cxx . . $ `<file>/src/handicap.cpp`/ |
| 2 | /* |
| 3 | * This file is part of PRAELECTOR. |
| 4 | * |
| 5 | * PRAELECTOR is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * COLLATINVS is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with PRAELECTOR; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | * |
| 19 | * © Yves Ouvrard, 2009 - 2018 |
| 20 | */ |
| 21 | |
| 22 | #include <handicap.h>cxx . . $ `<file>/src/handicap.h`/ |
| 23 | #include <iostream> |
| 24 | #include <QDebug> |
| 25 | |
| 26 | /********************** |
| 27 | Classe Handicap |
| 28 | **********************/ |
| 29 | |
| 30 | Handicapcxx . . $ Handicap#::Handicapcxx . . $ Handicap#Handicap(fc47db3ea09604d9).(QStringListcxx . . $ QStringList# sl) |
| 31 | { |
| 32 | // contôle |
| 33 | if (sl.countcxx . . $ QList#count(455f465bc33b4cdf).() < 3) |
| 34 | { |
| 35 | stdcxx . . $ std/::cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). qPrintablecxx . . $ `<external>/15045578679651060896/qglobal.h:831:11`!("ligne mal formée"+sl.join(":")); |
| 36 | } |
| 37 | _formecxx . . $ Handicap#_forme. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). sl.atcxx . . $ QList#at(e2681f9bb6b2f357).(0); |
| 38 | QStringcxx . . $ QString# lem = slcxx . . $ QString#QString(132dd6869045752b)..atcxx . . $ QList#at(e2681f9bb6b2f357).(1); |
| 39 | if (lem.startsWithcxx . . $ QString#startsWith(7cf081d1b6a1defd).('-'cxx . . $ QChar#QChar(f349c77f591a7878).)) |
| 40 | _lemmecxx . . $ Handicap#_lemme. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). lem.midcxx . . $ QString#mid(44b7563da18aea72).(1); |
| 41 | else _lemmeExclucxx . . $ Handicap#_lemmeExclu. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). lem; |
| 42 | _handcxx . . $ Handicap#_hand. = sl.atcxx . . $ QList#at(e2681f9bb6b2f357).(2).toIntcxx . . $ QString#toInt(d7972accae11ee1f).(); |
| 43 | } |
| 44 | |
| 45 | QStringcxx . . $ QString# Handicapcxx . . $ Handicap#::formecxx . . $ Handicap#forme(4365c3963150523e).() |
| 46 | { |
| 47 | return _formecxx . . $ QString#QString(132dd6869045752b).; |
| 48 | } |
| 49 | |
| 50 | QStringcxx . . $ QString# Handicapcxx . . $ Handicap#::lemmecxx . . $ Handicap#lemme(4365c3963150523e).() |
| 51 | { |
| 52 | return _lemmecxx . . $ QString#QString(132dd6869045752b).; |
| 53 | } |
| 54 | |
| 55 | QStringcxx . . $ QString# Handicapcxx . . $ Handicap#::lemmeExclucxx . . $ Handicap#lemmeExclu(4365c3963150523e).() |
| 56 | { |
| 57 | return _lemmeExclucxx . . $ QString#QString(132dd6869045752b).; |
| 58 | } |
| 59 | |
| 60 | int Handicapcxx . . $ Handicap#::handcxx . . $ Handicap#hand(b126dc7c1de90089).() |
| 61 | { |
| 62 | return _handcxx . . $ Handicap#_hand.; |
| 63 | } |