From: sri on
How should I model the following design problem :

1) I need to read/write a set of bytes from/to the binary file between
a starting address and ending address.
2) Before writing the bytes I should pass file name with extension so
that the bytes will be written in that file.
3) I need to reduce the number of I/O operation while reading/writing
the bytes so that I could improve the performance.
4) How would I specify the error handling strategy?
5) What kind of design pattern I could employ to achieve the above
requirements.

If possible please point me to industrial strength c++ implementation

regards,
sri.

From: H. S. Lahman on
Responding to Sri wrote:

> How should I model the following design problem :
>
> 1) I need to read/write a set of bytes from/to the binary file between
> a starting address and ending address.
> 2) Before writing the bytes I should pass file name with extension so
> that the bytes will be written in that file.
> 3) I need to reduce the number of I/O operation while reading/writing
> the bytes so that I could improve the performance.
> 4) How would I specify the error handling strategy?
> 5) What kind of design pattern I could employ to achieve the above
> requirements.
>
> If possible please point me to industrial strength c++ implementation

The purpose of these forums is not to do your classroom projects for
you. Use what you learned in the course to try to solve the problem; it
is part of the learning process.

Also, this is a pretty low level, tactical problem whose answers will
depend upon the specific language used, so you would be better off
trying a C++ forum. This forum usually deals with higher level design
issues.


*************
There is nothing wrong with me that could
not be cured by a capful of Drano.

H. S. Lahman
hsl(a)pathfindermda.com
Pathfinder Solutions
http://www.pathfindermda.com
blog: http://pathfinderpeople.blogs.com/hslahman
"Model-Based Translation: The Next Step in Agile Development". Email
info(a)pathfindermda.com for your copy.
Pathfinder is hiring:
http://www.pathfindermda.com/about_us/careers_pos3.php.
(888)OOA-PATH



From: sri on
On Feb 22, 11:28 pm, "H. S. Lahman" <h.lah...(a)verizon.net> wrote:
> Responding to Sri wrote:
> > How should I model the following design problem :
>
> > 1) I need to read/write a set of bytes from/to the binaryfilebetween
> > a starting address and ending address.
> > 2) Before writing the bytes I should passfilename with extension so
> > that the bytes will be written in thatfile.
> > 3) I need to reduce the number of I/O operation whilereading/writing
> > the bytes so that I could improve the performance.
> > 4) How would I specify the error handling strategy?
> > 5) What kind of design pattern I could employ to achieve the above
> > requirements.
>
> > If possible please point me to industrial strength c++ implementation
>
> The purpose of these forums is not to do your classroom projects for
> you. Use what you learned in the course to try to solve the problem; it
> is part of the learning process.
>
> Also, this is a pretty low level, tactical problem whose answers will
> depend upon the specific language used, so you would be better off
> trying a C++ forum. This forum usually deals with higher level design
> issues.
>
> *************
> There is nothing wrong with me that could
> not be cured by a capful of Drano.
>
> H. S. Lahman
> h...(a)pathfindermda.com
> Pathfinder Solutionshttp://www.pathfindermda.com
> blog:http://pathfinderpeople.blogs.com/hslahman
> "Model-Based Translation: The Next Step in Agile Development". Email
> i...(a)pathfindermda.com for your copy.
> Pathfinder is hiring:http://www.pathfindermda.com/about_us/careers_pos3.php.
> (888)OOA-PATH


sorry, my posting might given the impression that I am asking to solve
my problem.
I just posted this to learn some thing from this forum because I knew
that there are lot of mentors are avialable in this forum

regards,
sri

 | 
Pages: 1
Prev: In search of Knowledge
Next: Deletion practices