PT-Cooling-Log 1.0
PTCoolingLogViewer
src/ArgParser.cc
00001 #include "ArgParser.hh"
00002 #include <iostream>
00003 #include <iomanip>
00004 
00005 using namespace std;
00006 
00007 ArgParser::ArgParser() : 
00008   farg_( OPTIONAL ), value_( "" ), remark_( "" ), fRead_( false ) {
00009 }
00010 
00011 ArgParser::ArgParser( const F_ARGUMENT& flag, 
00012                       const std::string& def ) :
00013   farg_( flag ), value_( def ), remark_( "" ), fRead_( false ) {
00014 }
00015 
00016 ArgParser::ArgParser( const F_ARGUMENT& flag, 
00017                       const std::string& def, 
00018                       const std::string& remark ) :
00019   farg_( flag ), value_( def ), remark_( remark ), fRead_( false ) {
00020 }
00021 
00022 ArgParser::~ArgParser(){
00023 }
00024 
00025 bool ArgParser::operator()( const std::string& option ){
00026   value_ = option;
00027   fRead_ = true;
00028   return true;
00029 }
00030 
 全て クラス ファイル 関数 変数