本文整理匯總了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();
}
示例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();
}
示例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;
}
示例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);
}
}
示例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();
}
示例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;
}
示例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;
}
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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 ) );
}
}
示例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;
}
示例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;
}
示例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;
}