當前位置: 首頁>>代碼示例>>C++>>正文


C++ GetOption函數代碼示例

本文整理匯總了C++中GetOption函數的典型用法代碼示例。如果您正苦於以下問題:C++ GetOption函數的具體用法?C++ GetOption怎麽用?C++ GetOption使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了GetOption函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: GetOption

void D3PDSelector::Begin(TTree * /*tree*/)
{
   // The Begin() function is called at the start of the query.
   // When running with PROOF Begin() is only called on the client.
   // The tree argument is deprecated (on PROOF 0 is passed).
   std::cout << "BEGIN" << std::endl;



   TString option = GetOption();
}
開發者ID:akanevm,項目名稱:HCCRAB3,代碼行數:11,代碼來源:D3PDSelector.C

示例2: Init

void esdAna::SlaveBegin(TTree *tree)
{
   // The SlaveBegin() function is called after the Begin() function.
   // When running with PROOF SlaveBegin() is called on each slave server.
   // The tree argument is deprecated (on PROOF 0 is passed).

  
     Init(tree);

   TString option = GetOption();

}
開發者ID:alisw,項目名稱:AliRoot,代碼行數:12,代碼來源:esdAna.C

示例3: GetOption

bool wxOptionValue::GetOption(const wxString& name, int *v1, int *v2, int *v3,
                              const wxString& delims) const
{
    wxArrayInt intArr;
    if (GetOption(name, intArr, 3, delims) != 3)
        return false;

    if (v1) *v1 = intArr[0];
    if (v2) *v2 = intArr[1];
    if (v3) *v3 = intArr[2];
    return true;
}
開發者ID:DowerChest,項目名稱:codeblocks,代碼行數:12,代碼來源:optvalue.cpp

示例4: GetOption

void generate_corrections_TRB3_dataStructureV2::Begin(TTree * /*tree*/)
{
   TString option = GetOption();
   
   binsHist = new TH1F*[channelCount];
   correctionsHist = new TH1F*[channelCount];
   for(int i = 0; i < channelCount; i++){
     binsHist[i] = new TH1F(Form("binsHist%d", i), Form("binsHist%d", i), 500, 0, 5000);
     correctionsHist[i] = new TH1F(Form("correction%d", i), Form("correction%d", i), 500, 0, 500);
   }
     
  }
開發者ID:JPETTomography,項目名稱:Unpacker2,代碼行數:12,代碼來源:generate_corrections_TRB3_dataStructureV2.C

示例5: GetOption

void MySelector::Begin(TTree * /*tree*/)
{
   // The Begin() function is called at the start of the query.
   // When running with PROOF Begin() is only called on the client.
   // The tree argument is deprecated (on PROOF 0 is passed).

   TString option = GetOption();

   // some time measurement
   tBegin.Set(); printf("*==* ---------- Begin of Job ----------");
   tBegin.Print();
}
開發者ID:0x0all,項目名稱:ROOT,代碼行數:12,代碼來源:MySelector.C

示例6: GetOption

//_____________________________________________________________________________
void ProofSelectorMyCutFlow::Begin(TTree * /*tree*/)
{
  // The Begin() function is called at the start of the query.
  // When running with PROOF Begin() is only called on the client.
  // The tree argument is deprecated (on PROOF 0 is passed).
  
  cout << "start Begin " << endl;
  TString option = GetOption();
  cout << "end  Begin" << endl;
  
  
}
開發者ID:MichaelButtignol,項目名稱:MonotopBabyTuples,代碼行數:13,代碼來源:ProofSelectorMyCutFlow.C

示例7: SetSamKeyState

// Build the SAM keyboard matrix from the current PC state
void SetSamKeyState ()
{
    // No SAM keys are pressed initially
    ReleaseAllSamKeys();

    // Set any SIP selection on the SAM keyboard
    if (nSipKey >= 0 && nSipKey != SK_NONE) PressSamKey(nSipKey);
    if (nSipMods & SMOD_SHIFT) PressSamKey(SK_SHIFT);
    if (nSipMods & SMOD_SYMBOL) PressSamKey(SK_SYMBOL);
    if (nSipMods & SMOD_CONTROL) PressSamKey(SK_CONTROL);

    // If the control pad or hardware keys are pressed, activate the appropriate SAM key
    for (int i = 0 ; i < sizeof(anHwKeys)/sizeof(anHwKeys[0]) ; i++)
    {
        if (IsPressed(anHwKeys[i]))
            PressSamKey(anKeyMap[i]);
    }

    // Left and right shift keys are equivalent, and also complementary!
    bool fShiftToggle = IsPressed(VK_LSHIFT) && IsPressed(VK_RSHIFT);

    // Process the key combinations required for the mode we're in
    switch (GetOption(keymapping))
    {
        // SAM keys
        case 1:
            ProcessKeyTable(asSamSymbols);
            ProcessKeyTable(asSamMappings);
            break;

        // Spectrum mappings
        case 2:
            ProcessKeyTable(asSpectrumSymbols);
            ProcessKeyTable(asSpectrumMappings);
            break;
    }

    // Toggle shift if both shift keys are down to allow shifted versions of keys that are
    // shifted on the PC but unshifted on the SAM
    if (fShiftToggle)
        ReleaseKey(VK_SHIFT);

    // Process the simple key mappings
    ProcessKeyTable(asSamKeys);

    // Update the SIP if it may have changed
    if (fSipDirty)
    {
        InvalidateRect(g_hwndSIP, NULL, FALSE);
        fSipDirty = false;
    }
}
開發者ID:DavidKnight247,項目名稱:simcoupe,代碼行數:53,代碼來源:Input.cpp

示例8: LISTEXPRESSION

logical DLInterpreter :: LISTEXPRESSION ( )
{
  logical                 term = NO;
BEGINSEQ
  if ( !GetOption('h') )
    ShowExpression();
  else
  {
//                                 :   
    Output("list current expression: ListExpression|l \n");
    if ( !GetOption('d') )                           LEAVESEQ

//                   1         2         3         4         5         6         7         8
//          12345678901234567890123456789012345678901234567890123456789012345678901234567890   
    Output("  The command lists the current expression \n");
    Output("  \n");
//                        -
  }

ENDSEQ
  return(term);
}
開發者ID:BackupTheBerlios,項目名稱:openaqua-svn,代碼行數:22,代碼來源:DLInterpreter.cpp

示例9: LISTCURRENTLINE

logical DLInterpreter :: LISTCURRENTLINE ( )
{
  logical                 term = NO;
BEGINSEQ
  if ( !GetOption('h') )
    ShowCurrentLine();
  else
  {
//                                 :   
    Output("list current line      : ListCurrentLine|dlc \n");
    if ( !GetOption('d') )                           LEAVESEQ

//                   1         2         3         4         5         6         7         8
//          12345678901234567890123456789012345678901234567890123456789012345678901234567890   
    Output("  The command lists the line with the current statement.\n");
    Output("  \n");
//                        -
  }

ENDSEQ
  return(term);
}
開發者ID:BackupTheBerlios,項目名稱:openaqua-svn,代碼行數:22,代碼來源:DLInterpreter.cpp

示例10: RESETBREAK

logical DLInterpreter :: RESETBREAK ( )
{
  logical                 term = NO;
BEGINSEQ
  if ( !GetOption('h') )
    SetBreakPoint(NO);      
  else
  {
//                                 :   
    Output("reset break point      : ResetBreak|drb \n");
    if ( !GetOption('d') )                           LEAVESEQ

//                   1         2         3         4         5         6         7         8
//          12345678901234567890123456789012345678901234567890123456789012345678901234567890   
    Output("  The command sets a break point at the current position.\n");
    Output("  \n");
//                        -
  }

ENDSEQ
  return(term);
}
開發者ID:BackupTheBerlios,項目名稱:openaqua-svn,代碼行數:22,代碼來源:DLInterpreter.cpp

示例11: GetOption

void UEAnalysisSelectorRootple::Begin(TTree * /*tree*/)
{
   // The Begin() function is called at the start of the query.
   // When running with PROOF Begin() is only called on the client.
   // The tree argument is deprecated (on PROOF 0 is passed).

   TString option = GetOption();
   
   std::cout << "UEAnalysisSelectorRootple Begin " <<std::endl;
   ue = new UEAnalysisUE();
   jets = new UEAnalysisJets();
   mpi = new UEAnalysisMPI();
}
開發者ID:Andrej-CMS,項目名稱:cmssw,代碼行數:13,代碼來源:UEAnalysisSelectorRootple.C

示例12: ProcStatus

static void ProcStatus( void )
{
    disp_optn   optn;

    optn = GetOption();
    if( optn == OPEN ) {
        WndCreateStatusWindow( &WndStatusColour );
    } else if( optn == CLOSE ) {
        WndCloseStatusWindow();
    } else {
        Error( ERR_LOC, LIT_ENG( ERR_BAD_OPTION ), GetCmdName( CMD_DISPLAY ) );
    }
}
開發者ID:Azarien,項目名稱:open-watcom-v2,代碼行數:13,代碼來源:dbgwdisp.c

示例13: getopt

int getopt(int argc, char **argv, char *optstring)
{
	int i;
	
	i = GetOption(argc, argv, optstring, &optarg);

	if (i==0 || i==1) return EOF;
	else if (i==-1) {
		char c=*(optarg+1);
		return c;
	}
	else return i;
}
開發者ID:HenrYxZ,項目名稱:GraphicsII,代碼行數:13,代碼來源:getopt.cpp

示例14: GetOption

void TagAndProbe::Begin(TTree * /*tree*/)
{
	// The Begin() function is called at the start of the query.
	// When running with PROOF Begin() is only called on the client.
	// The tree argument is deprecated (on PROOF 0 is passed).
	
	TString option = GetOption();
	tTagAndProbeMuIso_=NULL;
	tTagAndProbeMuReco_=NULL;
	tTagAndProbeElecIso_=NULL;
	tTagAndProbeElecReco_=NULL;
	
}
開發者ID:jbradmil,項目名稱:csa14,代碼行數:13,代碼來源:TagAndProbe.C

示例15: GetOption

//_____________________________________________________________________________
void ProofFriends::Begin(TTree * /*tree*/)
{
   // The Begin() function is called at the start of the query.
   // When running with PROOF Begin() is only called on the client.
   // The tree argument is deprecated (on PROOF 0 is passed).

   TString option = GetOption();

   TNamed *out = (TNamed *) fInput->FindObject("PROOF_DONT_PLOT");
   if (out) fPlot = kFALSE;
   out = (TNamed *) fInput->FindObject("PROOF_NO_FRIENDS");
   if (out) fDoFriends = kFALSE;
}
開發者ID:MycrofD,項目名稱:root,代碼行數:14,代碼來源:ProofFriends.C


注:本文中的GetOption函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。