Lumiera  0.pre.03
»edit your freedom«
dummy-session-connection.hpp
Go to the documentation of this file.
1 /*
2  dummy-session-connection.hpp - scaffolding placeholder to drive the GUI-Session connection
3 
4  Copyright (C)
5  2016, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 */
13 
34 #ifndef STEAM_MOBJECT_SESSION_DUMMY_SESSION_CONNECTION_H
35 #define STEAM_MOBJECT_SESSION_DUMMY_SESSION_CONNECTION_H
36 
37 #include "lib/error.hpp"
38 #include "lib/depend.hpp"
39 #include "lib/nocopy.hpp"
40 #include "lib/util.hpp"
41 
42 #include "lib/diff/tree-diff.hpp"
44 
45 #include <string>
46 
47 namespace lib {
48 namespace diff{
49  class MutationMessage;
50 }}
51 namespace steam {
52 namespace cmd {
53 
54  using control::Command;
55  using control::CommandDef;
56  using control::CommandSetup;
57 
58  /* ============ dedicated Fake-Commands ============ */
59 
60  extern CommandSetup test_fake_injectSequence_1;
61  extern CommandSetup test_fake_injectSequence_2;
62 
63 }
64 namespace mobject {
65 namespace session {
66 
67 //using util::isnil;
68  using std::string;
70 
84  {
85  string nothing_;
86 
89 
90  friend class lib::DependencyFactory<DummySessionConnection>;
91 
92  public:
97 
98 
99  /* == do X == */
100 
101  /* == forget Y == */
102 
103  MutationMessage fabricateSeq1 (string baseID);
104  MutationMessage fabricateSeq2 (string baseID);
105 
106  void applyCopy (MutationMessage const&);
107 
108 
109 #if false
110  void setSolution (string const& solution = "")
111  {
112  UNIMPLEMENTED ("tbw");
113  if (isDeaf())
114  this->transmogrify (solution);
115  }
116 #endif
117  };
118 
119 
120 
121 }}} // namespace steam::mobject::session
122 #endif /*SRC_PROC_MOBJECT_SESSION_DUMMY_SESSION_CONNECTION_HPP_*/
Any copy and copy construction prohibited.
Definition: nocopy.hpp:37
Opaque message to effect a structural change on a target, which is likewise only known in an abstract...
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:65
Access point to singletons and other kinds of dependencies designated by type.
Definition: depend.hpp:280
Implementation namespace for support and library code.
Mix-Ins to allow or prohibit various degrees of copying and cloning.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
Provision for setup of concrete commands for use by the UI.
A token language to represent structural changes in a tree like hierarchical data structure...
Singleton services and Dependency Injection.
Lumiera error handling (C++ interface).
Helper to abstract creation and lifecycle of a dependency.
Definition: depend.hpp:125
Scaffolding to drive the evolution of the Lumiera application.
static lib::Depend< DummySessionConnection > instance
access point to set up the scaffolding.