From: Ondrej Kozina Date: Mon, 24 Feb 2014 12:52:37 +0000 (+0100) Subject: - fix indentation in XAttributes.h X-Git-Tag: v0.2.2~18^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c72602cd3f3fadfa40ddad15032fadb4773f3c3;p=thirdparty%2Fsnapper.git - fix indentation in XAttributes.h --- diff --git a/snapper/XAttributes.h b/snapper/XAttributes.h index 2aa88b2e..434b4d98 100644 --- a/snapper/XAttributes.h +++ b/snapper/XAttributes.h @@ -33,76 +33,76 @@ namespace snapper { - using std::map; - using std::string; - using std::pair; - using std::ostream; - using std::vector; - - typedef vector xa_value_t; - typedef map xa_map_t; - typedef pair xa_pair_t; - typedef vector xa_mod_vec_t; - typedef vector xa_del_vec_t; - - // iterators - typedef xa_map_t::const_iterator xa_map_citer; - typedef xa_mod_vec_t::const_iterator xa_mod_vec_citer; - typedef xa_del_vec_t::const_iterator xa_del_vec_citer; - - class XAttributes - { - private: - xa_map_t xamap; - public: - XAttributes(const string&); - XAttributes(const SFile& dir); - - xa_map_citer cbegin() const { return xamap.begin(); } - xa_map_citer cend() const { return xamap.end(); } - - bool operator==(const XAttributes&) const; - }; - - class XAModification - { - private: - xa_mod_vec_t create_vec; - xa_del_vec_t delete_vec; - xa_mod_vec_t replace_vec; - - void printTo(ostream&, bool) const; - public: - - XAModification(const XAttributes&, const XAttributes&); - - bool empty() const; - void filterOutAcls(); - bool serializeTo(const string&) const; - - unsigned int getXaCreateNum() const; - unsigned int getXaDeleteNum() const; - unsigned int getXaReplaceNum() const; - - // this will generate diff report - void dumpDiffReport(ostream&) const; - - // this will print out the class content - friend ostream& operator<<(ostream&, const XAModification&); - }; - - ostream& operator<<(ostream&, const XAttributes&); - ostream& operator<<(ostream&, const xa_value_t&); - - class CompareAcls - { - private: - xa_map_t xamap; - public: - CompareAcls(const XAttributes& xa); - - bool operator==(const CompareAcls&) const; - }; + using std::map; + using std::string; + using std::pair; + using std::ostream; + using std::vector; + + typedef vector xa_value_t; + typedef map xa_map_t; + typedef pair xa_pair_t; + typedef vector xa_mod_vec_t; + typedef vector xa_del_vec_t; + + // iterators + typedef xa_map_t::const_iterator xa_map_citer; + typedef xa_mod_vec_t::const_iterator xa_mod_vec_citer; + typedef xa_del_vec_t::const_iterator xa_del_vec_citer; + + class XAttributes + { + private: + xa_map_t xamap; + public: + XAttributes(const string&); + XAttributes(const SFile& dir); + + xa_map_citer cbegin() const { return xamap.begin(); } + xa_map_citer cend() const { return xamap.end(); } + + bool operator==(const XAttributes&) const; + }; + + class XAModification + { + private: + xa_mod_vec_t create_vec; + xa_del_vec_t delete_vec; + xa_mod_vec_t replace_vec; + + void printTo(ostream&, bool) const; + public: + + XAModification(const XAttributes&, const XAttributes&); + + bool empty() const; + void filterOutAcls(); + bool serializeTo(const string&) const; + + unsigned int getXaCreateNum() const; + unsigned int getXaDeleteNum() const; + unsigned int getXaReplaceNum() const; + + // this will generate diff report + void dumpDiffReport(ostream&) const; + + // this will print out the class content + friend ostream& operator<<(ostream&, const XAModification&); + }; + + ostream& operator<<(ostream&, const XAttributes&); + ostream& operator<<(ostream&, const xa_value_t&); + + class CompareAcls + { + private: + xa_map_t xamap; + public: + CompareAcls(const XAttributes& xa); + + bool operator==(const CompareAcls&) const; + }; }