summaryrefslogblamecommitdiff
path: root/src/bin/eolian_cxx/convert_comments.hh
blob: 75d420af5874345121fdc4d80d16e30dbb9efe2d (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& kls);

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

inline std::string
convert_comments_function(Eolian_Function const& constructor_, ctor_t func_type_)
{
   return convert_comments_function(constructor_, func_type_.value);
}

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

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

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

}

#endif // EOLIAN_CXX_CONVERT_COMMENTS_HH