|
Last change
on this file was
81,
checked in by rosiere, 18 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
|
File size:
632 bytes
|
| Line | |
|---|
| 1 | #include "../include/Sim2OS.h" |
|---|
| 2 | |
|---|
| 3 | namespace environment { |
|---|
| 4 | namespace sim2os { |
|---|
| 5 | |
|---|
| 6 | /* |
|---|
| 7 | * Test if all arguments is here |
|---|
| 8 | * (don't test the coherencies of this) |
|---|
| 9 | */ |
|---|
| 10 | bool Sim2OS::have_all_arguments (uint32_t nb_val) |
|---|
| 11 | { |
|---|
| 12 | // while ((nb_val > 0) && |
|---|
| 13 | // (arguments.find(nb_val) != arguments.end())) |
|---|
| 14 | // nb_val --; |
|---|
| 15 | |
|---|
| 16 | uint32_t val = nb_val; |
|---|
| 17 | while (nb_val > 0) |
|---|
| 18 | if (arguments.find(nb_val) != arguments.end()) |
|---|
| 19 | nb_val --; |
|---|
| 20 | else |
|---|
| 21 | { |
|---|
| 22 | std::cerr << "argument[" << nb_val << "] on " << val << ", is not find." << std::endl; |
|---|
| 23 | break; |
|---|
| 24 | } |
|---|
| 25 | |
|---|
| 26 | return (nb_val == 0); |
|---|
| 27 | }; |
|---|
| 28 | |
|---|
| 29 | }; |
|---|
| 30 | }; |
|---|
Note: See
TracBrowser
for help on using the repository browser.