-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathqtconceptmapcommands.h
38 lines (28 loc) · 1.01 KB
/
qtconceptmapcommands.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef QTCONCEPTMAPCOMMANDS_H
#define QTCONCEPTMAPCOMMANDS_H
///Functions to work on Commands
#include <string>
#include <vector>
#include "qtconceptmapfwd.h"
namespace ribi {
namespace cmap {
/// Works on, for example 'create_node(0, 0, from)', 'create_edge(relation)'
Command* ParseCommand(QtConceptMap& q, const std::string& s);
///Processess the Commands from command line arguments
///For example, QtConceptMapDemo --width 640 --height 400
/// --command "create_node(0, 0, from), create_node(0, 100, to), create_edge(relation)"
void ProcessCommands(
QtConceptMap& q,
const std::vector<std::string>& args);
///From, for example,
///
/// QtConceptMapDemo --width 640 --height 400
/// --command "create_node(0, 0, from), create_node(0, 100, to), create_edge(relation)"
///
/// extracts
///
/// "create_node(0, 0, from), create_node(0, 100, to), create_edge(relation)"
std::string GetCommands(const std::vector<std::string>& args);
} //~namespace cmap {
} //~namespace ribi {
#endif // QTCONCEPTMAPCOMMANDS_H