2014-12-15 01:27:03 +01:00
|
|
|
/*
|
2015-10-02 18:47:44 +02:00
|
|
|
TREE-DIFF.hpp - language to describe differences in hierarchical data structures
|
2014-12-15 01:27:03 +01:00
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
2015-10-02 18:47:44 +02:00
|
|
|
2015, Hermann Vosseler <Ichthyostega@web.de>
|
2014-12-15 01:27:03 +01:00
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2015-10-02 18:47:44 +02:00
|
|
|
/** @file tree-diff.hpp
|
2014-12-15 03:21:19 +01:00
|
|
|
** A token language to represent structural changes in a tree like
|
|
|
|
|
** hierarchical data structure. In combination with the #DiffLanguage framework,
|
|
|
|
|
** this building block defines the set of operations to express both content
|
|
|
|
|
** and structural changes in a given data structure.
|
2014-12-15 01:27:03 +01:00
|
|
|
**
|
2014-12-15 03:21:19 +01:00
|
|
|
** @todo UNIMPLEMENTED as of 12/14
|
|
|
|
|
**
|
|
|
|
|
** @see diff-language.cpp
|
2015-10-02 18:47:44 +02:00
|
|
|
** @see diff-tree-application-test.cpp
|
|
|
|
|
** @see tree-diff.cpp
|
|
|
|
|
** @see GenNode
|
2014-12-15 01:27:03 +01:00
|
|
|
**
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LIB_DIFF_TREE_DIFF_H
|
|
|
|
|
#define LIB_DIFF_TREE_DIFF_H
|
|
|
|
|
|
|
|
|
|
|
2014-12-15 03:21:19 +01:00
|
|
|
#include "lib/diff/diff-language.hpp"
|
2015-10-09 03:03:27 +02:00
|
|
|
#include "lib/diff/gen-node.hpp"
|
2014-12-15 01:27:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace lib {
|
2014-12-15 03:21:19 +01:00
|
|
|
namespace diff{
|
2014-12-15 01:27:03 +01:00
|
|
|
|
|
|
|
|
|
2014-12-15 03:21:19 +01:00
|
|
|
/**
|
|
|
|
|
* Interpreter interface to define the operations ("verbs"),
|
|
|
|
|
* which describe differences or changes in hierarchical data structure.
|
|
|
|
|
* The meaning of the verbs is as follows:
|
|
|
|
|
* - \c TODO
|
|
|
|
|
*
|
|
|
|
|
* @todo to be defined
|
2014-12-15 01:27:03 +01:00
|
|
|
*/
|
2014-12-15 03:21:19 +01:00
|
|
|
class TreeDiffInterpreter
|
2014-12-15 01:27:03 +01:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
2014-12-15 03:21:19 +01:00
|
|
|
///////TODO actual operations go here
|
2014-12-15 01:27:03 +01:00
|
|
|
};
|
|
|
|
|
|
2015-10-02 19:41:14 +02:00
|
|
|
using TreeDiffLanguage = DiffLanguage<TreeDiffInterpreter, GenNode>;
|
2014-12-15 01:27:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-12-15 03:21:19 +01:00
|
|
|
}} // namespace lib::diff
|
|
|
|
|
#endif /*LIB_DIFF_TREE_DIFF_H*/
|