00001
00007
00009
00010
00011
00012 #include <stdio.h>
00013 #include <stdlib.h>
00014
00015 #include "rhino.h"
00016
00017
00018
00019
00020
00021 Rhino *RhinoBot = NULL;
00022 unsigned int uiCommandEnumeration;
00023 unsigned int uiCode;
00024 unsigned int uiLogLevel;
00025 char sMessage[MSG_LENGTH];
00026 char sAux[4];
00027
00028
00029
00030
00031 int main(void){
00032
00033
00034
00035 for(int j=0; j<4; j++){
00036
00037 RhinoBot = new(Rhino);
00038
00039 for(int i=0; i<256; i++){
00040 RhinoBot->set_LogLevel(j);
00041 RhinoBot->ProcessCommandToRhino("SS");
00042 sprintf(sAux,"%d", i);
00043 RhinoBot->ProcessMessageFromRhino(sAux);
00044
00045 if(RhinoBot->CBkMsg()){
00046 RhinoBot->get_CBkMsg(sMessage);
00047 printf("CBkMsg:\n%s\n", sMessage);
00048 }
00049 }
00050
00051 for(int i=0; i<256; i++){
00052 RhinoBot->set_LogLevel(j);
00053 RhinoBot->ProcessCommandToRhino("SA");
00054 sprintf(sAux,"%d", i);
00055 RhinoBot->ProcessMessageFromRhino(sAux);
00056
00057 if(RhinoBot->CBkMsg()){
00058 RhinoBot->get_CBkMsg(sMessage);
00059 printf("CBkMsg:\n%s\n", sMessage);
00060 }
00061 }
00062
00063 for(int i=0; i<129; i++){
00064 RhinoBot->set_LogLevel(j);
00065 RhinoBot->ProcessCommandToRhino("SE");
00066 sprintf(sAux,"%d", i);
00067 RhinoBot->ProcessMessageFromRhino(sAux);
00068
00069 if(RhinoBot->CBkMsg()){
00070 RhinoBot->get_CBkMsg(sMessage);
00071 printf("CBkMsg:\n%s\n", sMessage);
00072 }
00073 }
00074
00075 delete(RhinoBot);
00076
00077 }
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135 fprintf(stdout,"%s","\nAUFWIEDERSEHEN\n");
00136 return 0;
00137 }
00138