es40-cfg.cpp File Reference


Detailed Description

Configuration file creator.

Id
es40-cfg.cpp,v 1.6 2008/03/29 20:15:04 iamcamiel Exp

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.


Function Documentation

void add_disks ( ShrinkingChoiceQuestion disk_q,
ostream *  os 
)

Add disks for a controller to the configuration file.

Parameters:
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[] 
)


SourceForge.net Logo
Project space on SourceForge.net