summaryrefslogblamecommitdiff
path: root/src/bin/eolian_cxx/convert_comments.hh
blob: 788362e4be6e5d1e965a6d9c6560750864c4f654 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                      
                                                              
 

                                                                      


                                                                      
                                                                                                           
 
                                                                        


                  
                                                                                                           
 
                                                                        


                  
                                                                                                           
 
                                                                        


                  
                                                                                      
 
                                                                          




                                        

#ifndef EOLIAN_CXX_CONVERT_COMMENTS_HH
#define EOLIAN_CXX_CONVERT_COMMENTS_HH

#include <string>

#include <Eolian.h>
#include <Eolian_Cxx.hh>

#include "eolian_wrappers.hh"

namespace eolian_cxx {

std::string convert_comments_class(Eolian_Class const& klass);

std::string convert_comments_function(Eolian_Class const& klass,
                                      Eolian_Function const& function,
                                      Eolian_Function_Type func_type);

inline std::string
convert_comments_function(Eolian_Class const& klass, Eolian_Function const& function_, method_t func_type_)
{
   return convert_comments_function(klass, function_, func_type_.value);
}

inline std::string
convert_comments_function(Eolian_Class const& klass, Eolian_Function const& property_, getter_t func_type_)
{
   return convert_comments_function(klass, property_, func_type_.value);
}

inline std::string
convert_comments_function(Eolian_Class const& klass, Eolian_Function const& property_, setter_t func_type_)
{
   return convert_comments_function(klass, property_, func_type_.value);
}

inline std::string
convert_comments_function(Eolian_Class const& klass, Eolian_Function const& function_)
{
   return convert_comments_function(klass, function_, eolian_cxx::method);
}

}

#endif // EOLIAN_CXX_CONVERT_COMMENTS_HH