Skip to content
Snippets Groups Projects
Commit df68f275 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

builtin dot command

parent a7894709
No related branches found
No related tags found
No related merge requests found
/*
* 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 + "\nDOTDATA" ).c_str ( ) );
}
auto DotString = registration::AbstractRegister < Dot, void, const std::string & > ( Dot::dot );
} /* namespace builtin */
} /* namespace cli */
/*
* 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_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment