重写<小于号

来源:互联网 发布:dhcp 服务器端口 编辑:程序博客网 时间:2024/05/01 16:13
        typedef struct _tagPluginBaseInfo
        {                                    //插件基本信息
            int            nId;                //插件id
            int            nSortIndex;            //插件排序编号
            int            nCategoryId;        //所属类别id
            QString        strName;            //插件名称
            QString        strIconUrl;            //插件图标Url
            QString        strSPNick;            //开发商名称

            QString        strIntro;            //插件的介绍


        public:
            _tagPluginBaseInfo()
                :nId(0)
                ,nSortIndex(0)
                ,nCategoryId(0)
            {

            };



            bool operator < (const _tagPluginBaseInfo& rhs) const
            {
                if (this->nSortIndex < rhs.nSortIndex)    return true;
                return false;

            };


        }PLUGIN_BASE;
0 0
原创粉丝点击