// // aegis - project change supervisor // Copyright (C) 2007, 2008 Peter Miller // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see // . // #ifndef AEDE_POLICY_VALIDATION_FILES_LINE_LENGTH_H #define AEDE_POLICY_VALIDATION_FILES_LINE_LENGTH_H #include /** * The validation_files_line_length class is used to represent a check * of line lengths. */ class validation_files_line_length: public validation_files { public: /** * The destructor. */ virtual ~validation_files_line_length(); /** * The default constructor. */ validation_files_line_length(int linlen = 80); protected: // See base class for documentation bool check(change::pointer cp, fstate_src_ty *src); // See base class for documentation bool check_branches() const; // See base class for documentation bool check_downloaded() const; // See base class for documentation bool check_foreign_copyright() const; // See base class for documentation bool check_binaries() const; private: /** * The line_length instance variable is used to remember the * maximum line length allowed. */ int line_length; /** * The copy constructor. Do not use. */ validation_files_line_length(const validation_files_line_length &); /** * The assignment operator. Do not use. */ validation_files_line_length &operator=( const validation_files_line_length &); }; #endif // AEDE_POLICY_VALIDATION_FILES_LINE_LENGTH_H