Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Commits
df68f275
Commit
df68f275
authored
7 years ago
by
Jan Trávníček
Browse files
Options
Downloads
Patches
Plain Diff
builtin dot command
parent
a7894709
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alib2cli/src/builtin/Dot.cpp
+25
-0
25 additions, 0 deletions
alib2cli/src/builtin/Dot.cpp
alib2cli/src/builtin/Dot.h
+29
-0
29 additions, 0 deletions
alib2cli/src/builtin/Dot.h
with
54 additions
and
0 deletions
alib2cli/src/builtin/Dot.cpp
0 → 100644
+
25
−
0
View file @
df68f275
/*
*
Dot
.
cpp
*
*
Created
on
:
16.
8.
2017
*
Author
:
Jan
Travnicek
*/
#include
"Dot.h"
#include
<registration/AlgoRegistration.hpp>
#include
<cstdlib>
namespace
cli
{
namespace
builtin
{
void
Dot
::
dot
(
const
std
::
string
&
data
)
{
std
::
system
(
(
"dot -Tx11 <<DOTDATA
\n
"
+
data
+
"
\n
DOTDATA"
).
c_str
(
)
);
}
auto
DotString
=
registration
::
AbstractRegister
<
Dot
,
void
,
const
std
::
string
&
>
(
Dot
::
dot
);
}
/* namespace builtin */
}
/* namespace cli */
This diff is collapsed.
Click to expand it.
alib2cli/src/builtin/Dot.h
0 → 100644
+
29
−
0
View file @
df68f275
/*
* Dot.h
*
* Created on: 16. 8. 2017
* Author: Jan Travnicek
*/
#ifndef _DOT_H_
#define _DOT_H_
#include <string>
namespace cli {
namespace builtin {
class Dot {
public:
/**
* Removes dead states from FSM. Melichar 2.29
*/
static void dot( const std::string & dot );
};
} /* namespace builtin */
} /* namespace cli */
#endif /* _DOT_H_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment