@@ -355,7 +355,7 @@ inline CmdLine::CmdLine(const std::string& m,
355355 _constructor ();
356356}
357357
358- CmdLine::~CmdLine ()
358+ inline CmdLine::~CmdLine ()
359359{
360360 ClearContainer (_argDeleteOnExitList);
361361 ClearContainer (_visitorDeleteOnExitList);
@@ -366,7 +366,7 @@ CmdLine::~CmdLine()
366366 }
367367}
368368
369- void CmdLine::_constructor ()
369+ inline void CmdLine::_constructor ()
370370{
371371 _output = new StdOutput;
372372
@@ -403,7 +403,7 @@ void CmdLine::_constructor()
403403 deleteOnExit (v);
404404}
405405
406- void CmdLine::xorAdd ( const std::vector<Arg*>& ors )
406+ inline void CmdLine::xorAdd ( const std::vector<Arg*>& ors )
407407{
408408 _xorHandler.add ( ors );
409409
@@ -415,20 +415,20 @@ void CmdLine::xorAdd( const std::vector<Arg*>& ors )
415415 }
416416}
417417
418- void CmdLine::xorAdd ( Arg& a, Arg& b )
418+ inline void CmdLine::xorAdd ( Arg& a, Arg& b )
419419{
420420 std::vector<Arg*> ors;
421421 ors.push_back ( &a );
422422 ors.push_back ( &b );
423423 xorAdd ( ors );
424424}
425425
426- void CmdLine::add ( Arg& a )
426+ inline void CmdLine::add ( Arg& a )
427427{
428428 add ( &a );
429429}
430430
431- void CmdLine::add ( Arg* a )
431+ inline void CmdLine::add ( Arg* a )
432432{
433433 for ( ArgListIterator it = _argList.begin (); it != _argList.end (); it++ )
434434 if ( *a == *(*it) )
@@ -442,7 +442,8 @@ void CmdLine::add( Arg* a )
442442 _numRequired++;
443443}
444444
445- void CmdLine::parse (int argc, const char * const * argv)
445+
446+ inline void CmdLine::parse (int argc, const char * const * argv)
446447{
447448 // this step is necessary so that we have easy access to
448449 // mutable strings.
@@ -520,7 +521,7 @@ inline void CmdLine::parse(std::vector<std::string>& args)
520521 exit (estat);
521522}
522523
523- bool CmdLine::_emptyCombined (const std::string& s)
524+ inline bool CmdLine::_emptyCombined (const std::string& s)
524525{
525526 if ( s.length () > 0 && s[0 ] != Arg::flagStartChar () )
526527 return false ;
@@ -532,7 +533,7 @@ bool CmdLine::_emptyCombined(const std::string& s)
532533 return true ;
533534}
534535
535- void CmdLine::missingArgsException ()
536+ inline void CmdLine::missingArgsException ()
536537{
537538 int count = 0 ;
538539
@@ -559,60 +560,60 @@ void CmdLine::missingArgsException()
559560 throw (CmdLineParseException (msg));
560561}
561562
562- void CmdLine::deleteOnExit (Arg* ptr)
563+ inline void CmdLine::deleteOnExit (Arg* ptr)
563564{
564565 _argDeleteOnExitList.push_back (ptr);
565566}
566567
567- void CmdLine::deleteOnExit (Visitor* ptr)
568+ inline void CmdLine::deleteOnExit (Visitor* ptr)
568569{
569570 _visitorDeleteOnExitList.push_back (ptr);
570571}
571572
572- CmdLineOutput* CmdLine::getOutput ()
573+ inline CmdLineOutput* CmdLine::getOutput ()
573574{
574575 return _output;
575576}
576577
577- void CmdLine::setOutput (CmdLineOutput* co)
578+ inline void CmdLine::setOutput (CmdLineOutput* co)
578579{
579580 if ( !_userSetOutput )
580581 delete _output;
581582 _userSetOutput = true ;
582583 _output = co;
583584}
584585
585- std::string& CmdLine::getVersion ()
586+ inline std::string& CmdLine::getVersion ()
586587{
587588 return _version;
588589}
589590
590- std::string& CmdLine::getProgramName ()
591+ inline std::string& CmdLine::getProgramName ()
591592{
592593 return _progName;
593594}
594595
595- std::list<Arg*>& CmdLine::getArgList ()
596+ inline std::list<Arg*>& CmdLine::getArgList ()
596597{
597598 return _argList;
598599}
599600
600- XorHandler& CmdLine::getXorHandler ()
601+ inline XorHandler& CmdLine::getXorHandler ()
601602{
602603 return _xorHandler;
603604}
604605
605- char CmdLine::getDelimiter ()
606+ inline char CmdLine::getDelimiter ()
606607{
607608 return _delimiter;
608609}
609610
610- std::string& CmdLine::getMessage ()
611+ inline std::string& CmdLine::getMessage ()
611612{
612613 return _message;
613614}
614615
615- bool CmdLine::hasHelpAndVersion ()
616+ inline bool CmdLine::hasHelpAndVersion ()
616617{
617618 return _helpAndVersion;
618619}
0 commit comments