X-1.6 Camiel Vanderhoeven 29-MAR-2008 Replaced SDL with sdl.
X-1.5 Camiel Vanderhoeven 29-MAR-2008 Fix VGA console value.
X-1.4 Camiel Vanderhoeven 29-MAR-2008 Fill in NIC section.
X-1.3 Camiel Vanderhoeven 28-MAR-2008 Fixed CD-ROM question behaviour.
X-1.2 Camiel Vanderhoeven 28-MAR-2008 Properly capitalized "StdAfx.h".
X-1.1 Camiel Vanderhoeven 28-MAR-2008 File created.
Definition in file es40-cfg.cpp.
#include "StdAfx.h"
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <pcap.h>
#include "Question.h"
#include "FreeTextQuestion.h"
#include "NumberQuestion.h"
#include "MultipleChoiceQuestion.h"
#include "ShrinkingChoiceQuestion.h"
Go to the source code of this file.
Functions | |
| void | add_disks (ShrinkingChoiceQuestion *disk_q, ostream *os) |
| Add disks for a controller to the configuration file. | |
| int | main (int argc, char *argv[]) |
| Main program entry point. | |
| void add_disks | ( | ShrinkingChoiceQuestion * | disk_q, | |
| ostream * | os | |||
| ) |
Add disks for a controller to the configuration file.
| disk_q,: | A ShrinkingChoiceQuestion that contains all allowed disk names for this controller, and a special answer "none" with a value of "". | |
| os,: | Output stream for the configuration file. |
Definition at line 84 of file es40-cfg.cpp.
References MultipleChoiceQuestion::addAnswer(), NumberQuestion::ask(), FreeTextQuestion::ask(), MultipleChoiceQuestion::ask(), MultipleChoiceQuestion::countAnswers(), Question::getAnswer(), Question::setAnswer(), Question::setDefault(), Question::setExplanation(), Question::setQuestion(), and NumberQuestion::setRange().
Referenced by main().
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Main program entry point.
Definition at line 256 of file es40-cfg.cpp.
References add_disks(), MultipleChoiceQuestion::addAnswer(), NumberQuestion::ask(), FreeTextQuestion::ask(), MultipleChoiceQuestion::ask(), MultipleChoiceQuestion::countAnswers(), MultipleChoiceQuestion::dropChoice(), Question::getAnswer(), MultipleChoiceQuestion::getFirstChoice(), NumberQuestion::getNum(), i2s(), Question::setAnswer(), Question::setDefault(), Question::setExplanation(), Question::setQuestion(), NumberQuestion::setRange(), and VERSION.