-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b83933f
commit 4cb96c2
Showing
4 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
int main0(void); | ||
int main1(int argc, const char** argv); | ||
int main2(int argc, const char** argv); | ||
//int main3(int argc, const char** argv); | ||
//int main4(int argc, const char** argv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int main0(void); | ||
int main1(int argc, const char** argv); | ||
int main2(int argc, const char** argv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include <iostream> | ||
#include <stdlib.h> | ||
#include "MainHeader.h" | ||
|
||
int main(int argc, const char** argv) | ||
{ | ||
if(argc <= 1) | ||
{ | ||
|
||
std::cerr << "Usage: " << argv[0] << " MAIN_INDEX \n 0: hdf5\n 1: protobuf\n 2: human detector\n 3: server\ 4: client" << std::endl; | ||
} | ||
else | ||
{ | ||
int index = atoi(argv[1]); | ||
for(int m = 1; m < argc-1;m++) | ||
{ | ||
argv[m] = argv[m+1]; | ||
} | ||
argc --; | ||
switch(index) | ||
{ | ||
case 0: | ||
return main0(); | ||
case 1: | ||
return main1(argc,argv); | ||
case 2: | ||
return main2(argc, argv); | ||
/*case 3: | ||
return main3(argc, argv); | ||
case 4: | ||
return main4(argc, argv);*/ | ||
default: | ||
std::cout<<"Max ControlIndex is 1\n"; | ||
} | ||
} | ||
} |