-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshopd2pddld.cpp
More file actions
34 lines (31 loc) · 781 Bytes
/
shopd2pddld.cpp
File metadata and controls
34 lines (31 loc) · 781 Bytes
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
#include <iostream>
#include <vector>
#include <sstream>
#include <set>
#include <tr1/memory>
#include "exception.hpp"
#include "funcs.hpp"
#include "term.hpp"
#include "term_string.hpp"
#include "term_variable.hpp"
#include "term_constant.hpp"
#include "type_table.hpp"
#include "formula.hpp"
#include "formula_pred.hpp"
#include "formula_conj.hpp"
#include "operator.hpp"
#include "htn_task_head.hpp"
#include "htn_method.hpp"
#include "htn_domain.hpp"
int main( int argc, char * argv[] )
{
if( argc != 2 )
{
std::cerr << "\nUsage: \n";
std::cerr << "shopd2pddld <shop-domain-file>\n";
return 1;
}
std::stringstream l_sFileStream( ReadFile( argv[1] ) );
HtnDomain * l_pDomain = HtnDomain::FromShop( l_sFileStream );
std::cout << l_pDomain->ToPddl();
}