exercise I / O

Completed Posted Jan 28, 2014 Paid on delivery
Completed Paid on delivery

I need to do it (e.g. how to work a state machine) :

- A base class that deals act as a " state machine " generic

- A bit ' of derived classes (but not too many , two or three) that represent the commands

- A class "list" in which to put all the machines were running

after that ' and ' only a matter of reading a file with a list of commands (copy a file , create a file , etc.) , create a state machine for each command , put them all in a list , and then run a state for once each of the state machines in the list until ' they are all complete .

A single state machine could be that copy a file, and that he states :

- Open the source file , then changes state

- Read a block at a time from the source file . When you read all the blocks , switches to after

- Close the source file , it passes to the state after

- Open the destination file , go to the state after

- Write a block at a time in the destination file , go to the state after

- Close the file destination , purpose of enforcing

It would be nice to provide an error condition if one of these operations fails.

C++ Programming

Project ID: #5369726

About the project

1 proposal Remote project Active Jan 29, 2014

Awarded to:

asadrana91

A proposal has not yet been provided

$30 USD in 2 days
(1 Review)
1.3