- Timestamp:
- 04/30/08 15:14:05 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tests/loggers_test.cpp
r87 r89 10 10 int main() 11 11 { 12 int i; 13 12 14 RV th = RV ( "1 2","{a b }","1 1","0 0"); 13 RV r = RV ( " 3 4" );15 RV r = RV ( "2","{r }","2","0" ); 14 16 15 dirfilelog L(" dirfile",10);17 dirfilelog L("exp/dirfile",10); 16 18 17 L.add(r,"r"); 18 L.add(th,"th"); 19 int rid; 20 int thid; 21 22 rid=L.add(r,""); 23 thid=L.add(th,"th"); 19 24 20 25 L.init(); 21 26 27 for (i=0; i<150; i++){ 28 L.logit(rid,vec_2((double)i,(double)(i+1))); 29 L.logit(thid,vec_2((double)(100-i),(double)(i-50))); 30 L.step(); 31 } 32 L.step(true); 22 33 }