Graphic.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <sstream>
4 #include <vector>
5 
6 #include "boca/latex/String.hh"
7 #include "boca/latex/Command.hh"
8 
9 namespace boca
10 {
11 
12 namespace latex
13 {
14 
15 class Graphic
16 {
17 
18 public:
19 
20  Graphic();
21 
22  Graphic(std::string const& name, String const& caption = "", double width = 0.5);
23 
24  Graphic(std::vector<std::string> const& names, const String& caption, double width = 0.5);
25 
26  void Initialize();
27 
28  void AddGraphic(std::string const& name, double width = 0.5);
29 
30  void AddCaption(const String& caption);
31 
32  void AddGraphic(std::vector<std::string> const& names, const String& caption, double width = 0.5);
33 
34  std::string str() const;
35 
36 private:
37 
38  std::stringstream graphic_;
39 
40  Environment environment_ = Environment("figure");
41 
42 };
43 
44 }
45 
46 }
std::string str() const
Definition: Graphic.cpp:52
void AddCaption(const String &caption)
Definition: Graphic.cpp:39
Definition: String.hh:45
Boosted Collider Analysis.
Definition: Analysis.hh:15
Graphic()
Definition: Graphic.cpp:11
Definition: Command.hh:169
void Initialize()
Definition: Graphic.cpp:29
void AddGraphic(std::string const &name, double width=0.5)
Definition: Graphic.cpp:34
Definition: Graphic.hh:15