WSF
RevisionChange.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef REVISIONCHANGE_HPP
13#define REVISIONCHANGE_HPP
14
15#include <string>
16
17#include <QByteArray>
18#include <QVector>
19
20#include "TextSourceChange.hpp"
21#include "ViExport.hpp"
22
23namespace wizard
24{
28{
29 // These integer values are stored in the database and used in SQL queries.
30 // Since they are stored in the database, they should not be changed.
39
41 RevisionChange(Type aKind, const std::string& aFilePath, const QByteArray& aChangeBytes);
42 RevisionChange(Type aKind, const std::string& aFilePath, const QVector<TextSourceChange>& aChanges);
43 RevisionChange(Type aKind, const std::string& aFilePath, const char* aDataPtr, int aDataSize = -1);
44 RevisionChange(Type aKind, const std::string& aFilePath, const UtTextDocument& aDoc);
45 RevisionChange(Type aKind, const std::string& aFilePath);
46
47 bool operator==(const RevisionChange& aRhs);
48
50 std::string filePath;
51 QByteArray changeBytes;
52};
53
54using RevisionChangeList = std::vector<RevisionChange>;
55} // namespace wizard
56#endif // REVISIONCHANGE_HPP
#define VI_EXPORT
Definition ViExport.hpp:38
bool operator==(int aId, const WsfStringInt &aRhs)
Equal relational operator for the case of an integer on the LHS and a StringId on the RHS.
Definition WsfStringId.hpp:69
Definition Runner.hpp:22
std::vector< RevisionChange > RevisionChangeList
Definition RevisionChange.hpp:54
Definition RevisionChange.hpp:28
Type kind
Definition RevisionChange.hpp:49
RevisionChange()
Definition RevisionChange.cpp:16
std::string filePath
Definition RevisionChange.hpp:50
QByteArray changeBytes
Definition RevisionChange.hpp:51
Type
Definition RevisionChange.hpp:32
@ cCHANGE_DELTA
Definition RevisionChange.hpp:36
@ cCHANGE_FULL
Definition RevisionChange.hpp:37
@ cNEW_FILE
Definition RevisionChange.hpp:34
@ cNO_CHANGE
Definition RevisionChange.hpp:33
@ cREMOVED_FILE
Definition RevisionChange.hpp:35
Copyrights Multiple, All Rights Reserved