// // 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_TAR_H #define AEDIST_IFORMAT_TAR_H #include #include /** * The iformat_tar class is used to represent The processing to parse a * tarball in order reveive a tarball. * It is symmetric with the #oformat_tar class. */ class iformat_tar: public iformat { public: /** * The destructor. */ virtual ~iformat_tar(); /** * The create class method is used to create new dynamically * allocated instances of this class. */ static pointer create(const input::pointer &deeper); /** * The candidate class method is used to test whether or not * the given input source looks like a tarball. * No input is consumed (read position left unchanged). */ static bool candidate(const input::pointer &deeper); protected: // See base class for documentation. token_t get_token_inner(nstring &name, input::pointer &value); private: /** * The constructor. * It is private on purpose, use the #create class method instead. */ iformat_tar(const input::pointer &deeper); input_tar::pointer itar_p; /** * The default constructor. * Do not use. */ iformat_tar(); /** * The copy constructor. Do not use. */ iformat_tar(const iformat_tar &); /** * The assignment operator. Do not use. */ iformat_tar &operator=(const iformat_tar &); }; // vim: set ts=8 sw=4 et : #endif // AEDIST_IFORMAT_TAR_H