@@ -355,7 +355,7 @@ inline CmdLine::CmdLine(const std::string& m,
355
355
_constructor ();
356
356
}
357
357
358
- CmdLine::~CmdLine ()
358
+ inline CmdLine::~CmdLine ()
359
359
{
360
360
ClearContainer (_argDeleteOnExitList);
361
361
ClearContainer (_visitorDeleteOnExitList);
@@ -366,7 +366,7 @@ CmdLine::~CmdLine()
366
366
}
367
367
}
368
368
369
- void CmdLine::_constructor ()
369
+ inline void CmdLine::_constructor ()
370
370
{
371
371
_output = new StdOutput;
372
372
@@ -403,7 +403,7 @@ void CmdLine::_constructor()
403
403
deleteOnExit (v);
404
404
}
405
405
406
- void CmdLine::xorAdd ( const std::vector<Arg*>& ors )
406
+ inline void CmdLine::xorAdd ( const std::vector<Arg*>& ors )
407
407
{
408
408
_xorHandler.add ( ors );
409
409
@@ -415,20 +415,20 @@ void CmdLine::xorAdd( const std::vector<Arg*>& ors )
415
415
}
416
416
}
417
417
418
- void CmdLine::xorAdd ( Arg& a, Arg& b )
418
+ inline void CmdLine::xorAdd ( Arg& a, Arg& b )
419
419
{
420
420
std::vector<Arg*> ors;
421
421
ors.push_back ( &a );
422
422
ors.push_back ( &b );
423
423
xorAdd ( ors );
424
424
}
425
425
426
- void CmdLine::add ( Arg& a )
426
+ inline void CmdLine::add ( Arg& a )
427
427
{
428
428
add ( &a );
429
429
}
430
430
431
- void CmdLine::add ( Arg* a )
431
+ inline void CmdLine::add ( Arg* a )
432
432
{
433
433
for ( ArgListIterator it = _argList.begin (); it != _argList.end (); it++ )
434
434
if ( *a == *(*it) )
@@ -442,7 +442,8 @@ void CmdLine::add( Arg* a )
442
442
_numRequired++;
443
443
}
444
444
445
- void CmdLine::parse (int argc, const char * const * argv)
445
+
446
+ inline void CmdLine::parse (int argc, const char * const * argv)
446
447
{
447
448
// this step is necessary so that we have easy access to
448
449
// mutable strings.
@@ -520,7 +521,7 @@ inline void CmdLine::parse(std::vector<std::string>& args)
520
521
exit (estat);
521
522
}
522
523
523
- bool CmdLine::_emptyCombined (const std::string& s)
524
+ inline bool CmdLine::_emptyCombined (const std::string& s)
524
525
{
525
526
if ( s.length () > 0 && s[0 ] != Arg::flagStartChar () )
526
527
return false ;
@@ -532,7 +533,7 @@ bool CmdLine::_emptyCombined(const std::string& s)
532
533
return true ;
533
534
}
534
535
535
- void CmdLine::missingArgsException ()
536
+ inline void CmdLine::missingArgsException ()
536
537
{
537
538
int count = 0 ;
538
539
@@ -559,60 +560,60 @@ void CmdLine::missingArgsException()
559
560
throw (CmdLineParseException (msg));
560
561
}
561
562
562
- void CmdLine::deleteOnExit (Arg* ptr)
563
+ inline void CmdLine::deleteOnExit (Arg* ptr)
563
564
{
564
565
_argDeleteOnExitList.push_back (ptr);
565
566
}
566
567
567
- void CmdLine::deleteOnExit (Visitor* ptr)
568
+ inline void CmdLine::deleteOnExit (Visitor* ptr)
568
569
{
569
570
_visitorDeleteOnExitList.push_back (ptr);
570
571
}
571
572
572
- CmdLineOutput* CmdLine::getOutput ()
573
+ inline CmdLineOutput* CmdLine::getOutput ()
573
574
{
574
575
return _output;
575
576
}
576
577
577
- void CmdLine::setOutput (CmdLineOutput* co)
578
+ inline void CmdLine::setOutput (CmdLineOutput* co)
578
579
{
579
580
if ( !_userSetOutput )
580
581
delete _output;
581
582
_userSetOutput = true ;
582
583
_output = co;
583
584
}
584
585
585
- std::string& CmdLine::getVersion ()
586
+ inline std::string& CmdLine::getVersion ()
586
587
{
587
588
return _version;
588
589
}
589
590
590
- std::string& CmdLine::getProgramName ()
591
+ inline std::string& CmdLine::getProgramName ()
591
592
{
592
593
return _progName;
593
594
}
594
595
595
- std::list<Arg*>& CmdLine::getArgList ()
596
+ inline std::list<Arg*>& CmdLine::getArgList ()
596
597
{
597
598
return _argList;
598
599
}
599
600
600
- XorHandler& CmdLine::getXorHandler ()
601
+ inline XorHandler& CmdLine::getXorHandler ()
601
602
{
602
603
return _xorHandler;
603
604
}
604
605
605
- char CmdLine::getDelimiter ()
606
+ inline char CmdLine::getDelimiter ()
606
607
{
607
608
return _delimiter;
608
609
}
609
610
610
- std::string& CmdLine::getMessage ()
611
+ inline std::string& CmdLine::getMessage ()
611
612
{
612
613
return _message;
613
614
}
614
615
615
- bool CmdLine::hasHelpAndVersion ()
616
+ inline bool CmdLine::hasHelpAndVersion ()
616
617
{
617
618
return _helpAndVersion;
618
619
}
0 commit comments