PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
print_string.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 #ifndef __PRINT_STRING_H__
8 #define __PRINT_STRING_H__
9 
10 #include <string>
11 #include <list>
12 #include <vector>
13 #include <map>
14 #include <iostream>
15 
16 
17 template<typename T>
18 void phoenix_print(const T & data, const std::string& suffix = "", const std::string & prefix = "");
19 template<typename T>
20 void phoenix_print(const std::list<T> & data, const std::string& suffix = "", const std::string & prefix = "");
21 template<typename T>
22 void phoenix_print(const std::vector<T> & data, const std::string& suffix = "", const std::string & prefix = "");
23 template<typename T>
24 void phoenix_print(const std::vector<std::vector<T> > & data, const std::string& suffix = "", const std::string & prefix = "");
25 
26 template<typename T, typename U>
27 void phoenix_print(const std::map<T, U> & data, const std::string& suffix = "", const std::string & prefix = "");
28 
29 template<typename T, typename U>
30 void phoenix_print(const std::map<T, std::vector<U> > & data, const std::string& suffix = "", const std::string & prefix = "");
31 
32 #include "print_string_impl.h"
33 
34 #endif
phoenix_print
void phoenix_print(const T &data, const std::string &suffix="", const std::string &prefix="")
Print data.
Definition: print_string_impl.h:18
print_string_impl.h