Author: jkupec Date: Wed Jul 30 17:36:52 2008 New Revision: 10700 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10700&view=rev Log: - indent Modified: trunk/libzypp/zypp/ServiceInfo.h Modified: trunk/libzypp/zypp/ServiceInfo.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ServiceInfo.h?rev=10700&r1=10699&r2=10700&view=diff ============================================================================== --- trunk/libzypp/zypp/ServiceInfo.h (original) +++ trunk/libzypp/zypp/ServiceInfo.h Wed Jul 30 17:36:52 2008 @@ -23,83 +23,84 @@ namespace zypp { ///////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////// - // - // CLASS NAME : ServiceInfo - // - /** */ - class ServiceInfo : public repo::RepoInfoBase - { - public: - /** Default ctor creates \ref noService.*/ - ServiceInfo(); - - /** - * Creates ServiceInfo with specified alias. - * - * \param alias unique short name of service - */ - ServiceInfo( const std::string & alias ); - - /** - * ServiceInfo with alias and its URL - * - * \param alias unique shortname of service - * \param url url to service - */ - ServiceInfo( const std::string & alias, const Url& url ); - - public: - /** Represents an empty service. */ - static const ServiceInfo noService; - - public: - - /** - * Gets url to service - * - * \return url to service - */ - Url url() const; - - public: - - /** - * Sets url for this service - * - * \param url url to this service - */ - void setUrl( const Url& url ); - - public: - /** - * Writes ServiceInfo to stream in ".service" format - * - * \param str stream where serialized version service is written - */ - virtual std::ostream & dumpAsIniOn( std::ostream & str ) const; - - class Impl; - - private: - RWCOW_pointer<Impl> _pimpl; - }; - /////////////////////////////////////////////////////////////////// - - /** \relates ServiceInfo Stream output */ - std::ostream & operator<<( std::ostream & str, const ServiceInfo & obj ); - - /** \relates ServiceInfo */ - inline bool operator==( const ServiceInfo & lhs, const ServiceInfo & rhs ) - { return lhs.alias() == rhs.alias(); } - - /** \relates ServiceInfo */ - inline bool operator!=( const ServiceInfo & lhs, const ServiceInfo & rhs ) - { return lhs.alias() != rhs.alias(); } - - /** \relates ServiceInfo */ - inline bool operator<( const ServiceInfo & lhs, const ServiceInfo & rhs ) - { return lhs.alias() < rhs.alias(); } + + /////////////////////////////////////////////////////////////////// + // + // CLASS NAME : ServiceInfo + // + /** */ + class ServiceInfo : public repo::RepoInfoBase + { + public: + /** Default ctor creates \ref noService.*/ + ServiceInfo(); + + /** + * Creates ServiceInfo with specified alias. + * + * \param alias unique short name of service + */ + ServiceInfo( const std::string & alias ); + + /** + * ServiceInfo with alias and its URL + * + * \param alias unique shortname of service + * \param url url to service + */ + ServiceInfo( const std::string & alias, const Url& url ); + + public: + /** Represents an empty service. */ + static const ServiceInfo noService; + + public: + + /** + * Gets url to service + * + * \return url to service + */ + Url url() const; + + public: + + /** + * Sets url for this service + * + * \param url url to this service + */ + void setUrl( const Url& url ); + + public: + /** + * Writes ServiceInfo to stream in ".service" format + * + * \param str stream where serialized version service is written + */ + virtual std::ostream & dumpAsIniOn( std::ostream & str ) const; + + class Impl; + + private: + RWCOW_pointer<Impl> _pimpl; + }; + /////////////////////////////////////////////////////////////////// + + /** \relates ServiceInfo Stream output */ + std::ostream & operator<<( std::ostream & str, const ServiceInfo & obj ); + + /** \relates ServiceInfo */ + inline bool operator==( const ServiceInfo & lhs, const ServiceInfo & rhs ) + { return lhs.alias() == rhs.alias(); } + + /** \relates ServiceInfo */ + inline bool operator!=( const ServiceInfo & lhs, const ServiceInfo & rhs ) + { return lhs.alias() != rhs.alias(); } + + /** \relates ServiceInfo */ + inline bool operator<( const ServiceInfo & lhs, const ServiceInfo & rhs ) + { return lhs.alias() < rhs.alias(); } ///////////////////////////////////////////////////////////////// } // namespace zypp -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org