// // aegis - project change supervisor // Copyright (C) 2014 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 AEDIST_IFORMAT_PATCH_NOT_H #define AEDIST_IFORMAT_PATCH_NOT_H #include /** * The iformat_patch_not class is used to represent the processing * needed to discard patches from the change set archive. * This is useful when implementing 'aedidst -receive -no-patch' */ class iformat_patch_not: public iformat { public: typedef aegis_shared_ptr pointer; /** * The destructor. */ virtual ~iformat_patch_not(); /** * The create class method is used to create new dynamically * allocated instances of this class. * * @param source * The archive token stream to be filtered. */ static pointer create(const iformat::pointer &source); protected: // See base class for documentation. token_t get_token_inner(nstring &name, input::pointer &value); private: /** * The default constructor. * It is private on purpose, use the #create class method instead. * * @param source * The archive token stream to be filtered. */ iformat_patch_not(const iformat::pointer &source); /** * The source instance variable is used to remember the input token * stream to be filtered. */ iformat::pointer source; /** * The default constructor. * Do not use. */ iformat_patch_not(); /** * The copy constructor. Do not use. */ iformat_patch_not(const iformat_patch_not &); /** * The assignment operator. Do not use. */ iformat_patch_not &operator=(const iformat_patch_not &); }; // vim: set ts=8 sw=4 et : #endif // AEDIST_IFORMAT_PATCH_NOT_H