forked from qt-creator/qt-creator
Clang: Inline ProjectPartsDoNotExistMessage
Change-Id: I8476e0dcf2c5ce16c7fc76f6e91a7ec9d8512411 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
@@ -25,48 +25,17 @@
|
|||||||
|
|
||||||
#include "projectpartsdonotexistmessage.h"
|
#include "projectpartsdonotexistmessage.h"
|
||||||
|
|
||||||
#include <QDataStream>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|
||||||
namespace ClangBackEnd {
|
namespace ClangBackEnd {
|
||||||
|
|
||||||
ProjectPartsDoNotExistMessage::ProjectPartsDoNotExistMessage(const Utf8StringVector &projectPartIds)
|
|
||||||
: projectPartIds_(projectPartIds)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
const Utf8StringVector &ProjectPartsDoNotExistMessage::projectPartIds() const
|
|
||||||
{
|
|
||||||
return projectPartIds_;
|
|
||||||
}
|
|
||||||
|
|
||||||
QDataStream &operator<<(QDataStream &out, const ProjectPartsDoNotExistMessage &message)
|
|
||||||
{
|
|
||||||
out << message.projectPartIds_;
|
|
||||||
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
QDataStream &operator>>(QDataStream &in, ProjectPartsDoNotExistMessage &message)
|
|
||||||
{
|
|
||||||
in >> message.projectPartIds_;
|
|
||||||
|
|
||||||
return in;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator==(const ProjectPartsDoNotExistMessage &first, const ProjectPartsDoNotExistMessage &second)
|
|
||||||
{
|
|
||||||
return first.projectPartIds_ == second.projectPartIds_;
|
|
||||||
}
|
|
||||||
|
|
||||||
QDebug operator<<(QDebug debug, const ProjectPartsDoNotExistMessage &message)
|
QDebug operator<<(QDebug debug, const ProjectPartsDoNotExistMessage &message)
|
||||||
{
|
{
|
||||||
debug.nospace() << "ProjectPartDoesNotExistMessage(";
|
debug.nospace() << "ProjectPartDoesNotExistMessage(";
|
||||||
|
|
||||||
debug.nospace() << message.projectPartIds_;
|
debug.nospace() << message.projectPartIds();
|
||||||
|
|
||||||
debug.nospace() << ")";
|
debug.nospace() << ")";
|
||||||
|
|
||||||
|
@@ -29,29 +29,47 @@
|
|||||||
|
|
||||||
#include <utf8stringvector.h>
|
#include <utf8stringvector.h>
|
||||||
|
|
||||||
|
#include <QDataStream>
|
||||||
|
|
||||||
namespace ClangBackEnd {
|
namespace ClangBackEnd {
|
||||||
|
|
||||||
class CMBIPC_EXPORT ProjectPartsDoNotExistMessage
|
class ProjectPartsDoNotExistMessage
|
||||||
{
|
{
|
||||||
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const ProjectPartsDoNotExistMessage &message);
|
|
||||||
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, ProjectPartsDoNotExistMessage &message);
|
|
||||||
friend CMBIPC_EXPORT bool operator==(const ProjectPartsDoNotExistMessage &first, const ProjectPartsDoNotExistMessage &second);
|
|
||||||
friend CMBIPC_EXPORT QDebug operator<<(QDebug debug, const ProjectPartsDoNotExistMessage &message);
|
|
||||||
friend void PrintTo(const ProjectPartsDoNotExistMessage &message, ::std::ostream* os);
|
|
||||||
public:
|
public:
|
||||||
ProjectPartsDoNotExistMessage() = default;
|
ProjectPartsDoNotExistMessage() = default;
|
||||||
ProjectPartsDoNotExistMessage(const Utf8StringVector &projectPartIds);
|
ProjectPartsDoNotExistMessage(const Utf8StringVector &projectPartIds)
|
||||||
|
: projectPartIds_(projectPartIds)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
const Utf8StringVector &projectPartIds() const;
|
const Utf8StringVector &projectPartIds() const
|
||||||
|
{
|
||||||
|
return projectPartIds_;
|
||||||
|
}
|
||||||
|
|
||||||
|
friend QDataStream &operator<<(QDataStream &out, const ProjectPartsDoNotExistMessage &message)
|
||||||
|
{
|
||||||
|
out << message.projectPartIds_;
|
||||||
|
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
|
friend QDataStream &operator>>(QDataStream &in, ProjectPartsDoNotExistMessage &message)
|
||||||
|
{
|
||||||
|
in >> message.projectPartIds_;
|
||||||
|
|
||||||
|
return in;
|
||||||
|
}
|
||||||
|
|
||||||
|
friend bool operator==(const ProjectPartsDoNotExistMessage &first, const ProjectPartsDoNotExistMessage &second)
|
||||||
|
{
|
||||||
|
return first.projectPartIds_ == second.projectPartIds_;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Utf8StringVector projectPartIds_;
|
Utf8StringVector projectPartIds_;
|
||||||
};
|
};
|
||||||
|
|
||||||
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const ProjectPartsDoNotExistMessage &message);
|
|
||||||
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, ProjectPartsDoNotExistMessage &message);
|
|
||||||
CMBIPC_EXPORT bool operator==(const ProjectPartsDoNotExistMessage &first, const ProjectPartsDoNotExistMessage &second);
|
|
||||||
|
|
||||||
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const ProjectPartsDoNotExistMessage &message);
|
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const ProjectPartsDoNotExistMessage &message);
|
||||||
void PrintTo(const ProjectPartsDoNotExistMessage &message, ::std::ostream* os);
|
void PrintTo(const ProjectPartsDoNotExistMessage &message, ::std::ostream* os);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user