00001 /* 00002 This is a policy class for the traditional "common" parsing scheme. 00003 00004 Copyright (C) 2002 Ross A. Beyer 00005 00006 Contact Author: Ross A. Beyer, rbeyer@rossbeyer.net 00007 00008 CVS $Id: traditional_policy.hpp,v 1.2 2003/03/03 00:52:30 rbeyer Exp $ 00009 00010 00011 License & Copyright Information 00012 ------------------------------- 00013 00014 This file is part of the commandl package, 00015 $Name: commandl_Beta-1 $. 00016 00017 The commandl packge is free software; you can redistribute it 00018 and/or modify it under the terms of the GNU General Public License 00019 as published by the Free Software Foundation; either version 2 of the 00020 License, or (at your option) any later version. 00021 00022 The commandl package is distributed in the hope that it will be useful, 00023 but WITHOUT ANY WARRANTY; without even the implied warranty of 00024 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00025 GNU General Public License for more details. 00026 00027 You should have received a copy of the GNU General Public License 00028 along with this program; if not, write to the Free Software 00029 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00030 00031 */ 00032 00033 #ifndef TRADITIONAL_POLICY_HEADER // Begin the Header Guard to prevent 00034 #define TRADITIONAL_POLICY_HEADER // multiple inclusions. 00035 00036 #include "policy.hpp" 00037 #include <bitset> 00038 #include <string> 00039 #include <vector> 00040 00041 00042 namespace commandl 00043 { 00044 00048 class traditional_policy : public policy 00049 { 00050 00051 // ==================== Constructors & Destructor ===================== // 00052 public: 00053 traditional_policy(); 00054 00055 /* 00056 policy 00057 ( 00058 std::bitset<8>, // policy bitset 00059 std::vector<std::string> // prefixes 00060 std::vector<std::string> // assignments 00061 ); 00062 */ 00063 00064 // =========================== Accessors ============================== // 00065 public: 00066 00067 00068 // =========================== Methods ================================ // 00069 public: 00070 00071 00072 // --------------------------- Protected Methods ---------------------- // 00073 protected: 00074 00075 00076 // --------------------------- Private Methods ------------------------ // 00077 private: 00078 00079 00080 // =========================== Member Variables ======================= // 00081 protected: 00082 00083 00084 }; // End of the class declaration 00085 00086 } // End of the namespace declaration 00087 00088 #endif // End the Header Guard 00089