@@ -66,6 +66,8 @@ namespace wiz {
66
66
wiz::ClauText clautext;
67
67
wiz::ExecuteData executeData;
68
68
executeData.pEvents = eventUT;
69
+ executeData.noUseInput = true ;
70
+ executeData.noUseOutput = true ;
69
71
wiz::Option option;
70
72
71
73
std::string statements;
@@ -441,6 +443,8 @@ namespace wiz {
441
443
wiz::ClauText clautext;
442
444
wiz::ExecuteData executeData;
443
445
executeData.pEvents = insert_ut->GetParent ();
446
+ executeData.noUseInput = true ;
447
+ executeData.noUseOutput = true ;
444
448
wiz::Option option;
445
449
446
450
std::string statements;
@@ -471,6 +475,8 @@ namespace wiz {
471
475
wiz::ClauText clautext;
472
476
wiz::ExecuteData executeData;
473
477
executeData.pEvents = insert_ut->GetParent ();
478
+ executeData.noUseInput = true ;
479
+ executeData.noUseOutput = true ;
474
480
wiz::Option option;
475
481
476
482
std::string statements;
@@ -588,6 +594,8 @@ namespace wiz {
588
594
wiz::ClauText clautext;
589
595
wiz::ExecuteData executeData;
590
596
executeData.pEvents = insert_ut->GetParent ();
597
+ executeData.noUseInput = true ;
598
+ executeData.noUseOutput = true ;
591
599
wiz::Option option;
592
600
593
601
wiz::load_data::UserType callUT;
@@ -643,6 +651,8 @@ namespace wiz {
643
651
wiz::ClauText clautext;
644
652
wiz::ExecuteData executeData;
645
653
executeData.pEvents = insert_ut->GetParent ();
654
+ executeData.noUseInput = true ;
655
+ executeData.noUseOutput = true ;
646
656
wiz::Option option;
647
657
wiz::load_data::UserType callUT;
648
658
std::string statements;
@@ -819,6 +829,8 @@ namespace wiz {
819
829
wiz::ClauText clautext;
820
830
wiz::ExecuteData executeData;
821
831
executeData.pEvents = insert_ut->GetParent ();
832
+ executeData.noUseInput = true ;
833
+ executeData.noUseOutput = true ;
822
834
wiz::Option option;
823
835
824
836
wiz::load_data::UserType callUT;
@@ -1015,7 +1027,9 @@ std::string ClauText::execute_module(const std::string& MainStr, wiz::load_data:
1015
1027
if (executeData.chkInfo == false ) { // / chk smartpointer.
1016
1028
if (global.GetUserTypeItem (" Main" ).empty () && MainStr.empty ())
1017
1029
{
1018
- wiz::Out << " do not exist Main" << ENTER;
1030
+ if (!executeData.noUseOutput ) {
1031
+ wiz::Out << " do not exist Main" << ENTER;
1032
+ }
1019
1033
return " ERROR -1" ;
1020
1034
}
1021
1035
@@ -2276,7 +2290,7 @@ std::string ClauText::execute_module(const std::string& MainStr, wiz::load_data:
2276
2290
}
2277
2291
else //
2278
2292
{
2279
- // std::cout << val->GetUserTypeList(0)->ToString() << "\n";
2293
+ // wiz::Out << val->GetUserTypeList(0)->ToString() << "\n";
2280
2294
dir = wiz::load_data::LoadData::ToBool4 (nullptr , global, *val->GetUserTypeList (0 ), _executeData).ToString ();
2281
2295
is2 = true ;
2282
2296
}
@@ -2530,7 +2544,7 @@ std::string ClauText::execute_module(const std::string& MainStr, wiz::load_data:
2530
2544
wiz::Out << temp;
2531
2545
}
2532
2546
else {
2533
- // std::cout << global.ToString() << "\n";
2547
+ // wiz::Out << global.ToString() << "\n";
2534
2548
wiz::load_data::UserType* ut = wiz::load_data::UserType::Find (&global, listName).second [0 ];
2535
2549
if (ut->GetItemListSize () == 0 && wiz::ToString (ut->GetItemList (0 ).GetName ()).empty ()) {
2536
2550
wiz::Out << wiz::ToString (ut->GetItemList (0 ).Get (0 ));
@@ -2633,7 +2647,7 @@ std::string ClauText::execute_module(const std::string& MainStr, wiz::load_data:
2633
2647
// int a = clock();
2634
2648
if (wiz::load_data::LoadData::LoadDataFromFile (fileName, ut)) {
2635
2649
// int b = clock();
2636
- // std::cout << b - a << "ms\n";
2650
+ // wiz::Out << b - a << "ms\n";
2637
2651
{
2638
2652
2639
2653
int item_count = 0 ;
@@ -2656,8 +2670,9 @@ std::string ClauText::execute_module(const std::string& MainStr, wiz::load_data:
2656
2670
if (!_Main.empty ())
2657
2671
{
2658
2672
// error!
2659
- wiz::Out << " err" << ENTER;
2660
-
2673
+ if (executeData.noUseOutput ) {
2674
+ wiz::Out << " err" << ENTER;
2675
+ }
2661
2676
return " ERROR -2" ; // / exit?
2662
2677
}
2663
2678
}
@@ -2795,7 +2810,7 @@ std::string ClauText::execute_module(const std::string& MainStr, wiz::load_data:
2795
2810
// int a = clock();
2796
2811
if (wiz::load_data::LoadData::LoadDataFromFileWithJson (fileName, ut)) {
2797
2812
// int b = clock();
2798
- // std::cout << b - a << "ms\n";
2813
+ // wiz::Out << b - a << "ms\n";
2799
2814
{
2800
2815
// for (int i = 0; i < ut.GetCommentListSize(); ++i) {
2801
2816
// utTemp->PushComment(std::move(ut.GetCommentList(i)));
@@ -3357,7 +3372,9 @@ std::string ClauText::execute_module(const std::string& MainStr, wiz::load_data:
3357
3372
else
3358
3373
{
3359
3374
// debug..
3360
- wiz::Out << " Error Debug : " << cond << ENTER;
3375
+ if (!executeData.noUseOutput ) {
3376
+ wiz::Out << " Error Debug : " << cond << ENTER;
3377
+ }
3361
3378
return " ERROR -3" ;
3362
3379
}
3363
3380
}
@@ -3381,8 +3398,9 @@ std::string ClauText::execute_module(const std::string& MainStr, wiz::load_data:
3381
3398
}
3382
3399
}
3383
3400
else { //
3384
- wiz::Out << " it does not work. : " << wiz::ToString (val->GetName ()) << ENTER;
3385
-
3401
+ if (!executeData.noUseOutput ) {
3402
+ wiz::Out << " it does not work. : " << wiz::ToString (val->GetName ()) << ENTER;
3403
+ }
3386
3404
eventStack.top ().userType_idx .top ()++;
3387
3405
break ;
3388
3406
}
@@ -3507,7 +3525,7 @@ void ClauText::ShellMode(wiz::load_data::UserType& global, const ExecuteData& ex
3507
3525
if (" $print" == command) {
3508
3526
wiz::Out << " >> : global" << ENTER;
3509
3527
// cout << global.ToString() << endl;
3510
- global.Save1 (std::cout);
3528
+ global.Save1 (std::cout); // / todo - change cout?
3511
3529
wiz::Out << ENTER;
3512
3530
}
3513
3531
else if (" $print_data_only" == command) {
0 commit comments