blob: 51536b3aaa330868138b4eb3b26d90f17bc2eadd (
plain)
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
39
40
41
42
43
44
|
// file : CIDLC/ExecImplGenerator.hpp
// author : Jeff Parsons <j.parsons@vanderbilt.edu>
// cvs-id : $Id$
#ifndef EXEC_IMPL_GENERATOR_HPP
#define EXEC_IMPL_GENERATOR_HPP
#include "CCF/CodeGenerationKit/CommandLine.hpp"
#include "CCF/CodeGenerationKit/CommandLineDescriptor.hpp"
#include "CCF/CIDL/SemanticGraph.hpp"
#include "CCF/CIDL/Traversal.hpp"
class ExecImplGenerator
{
public:
static void
options (CL::Description& d);
ExecImplGenerator (CommandLine const& cl);
void
generate (CCF::CIDL::SemanticGraph::TranslationUnit&,
fs::path const& file);
private:
void
compute_export_macro (const fs::path& file_path);
std::ostream&
configure_stream (std::string const& suffix_option,
std::string const& default_suffix,
std::string const& regex_option,
fs::ofstream& ofs);
private:
CommandLine const& cl_;
std::string file_name_;
std::string export_macro_;
};
#endif // EXEC_IMPL_GENERATOR_HPP
|