Intra2net AG

codegen-stubhead.hxx File Reference

#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/xml_oarchive.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/serialization/serialization.hpp>
#include <string>
#include <t2n_exception.hxx>
#include <command.hxx>
Include dependency graph for codegen-stubhead.hxx:

Go to the source code of this file.

Defines

#define LIBT2N_EXPORT   __attribute((gccxml("libt2n-default")))
 mark a function to export it via libt2n
#define LIBT2N_DEFAULT_ARG(type, value)   __attribute((gccxml("libt2n-default-arg",#value))) type = value
 tell libt2n about a default argument

Define Documentation

#define LIBT2N_DEFAULT_ARG ( type,
value   )     __attribute((gccxml("libt2n-default-arg",#value))) type = value

tell libt2n about a default argument

Parameters:
type type of the default argument
value default value
Example
    LIBT2N_EXPORT std::string testfunc(LIBT2N_DEFAULT_ARG(const std::string str&,"hello world"))
    {
        // your code here
    }
Remarks:
Codegen gets default arguments via this define (gccxml-attribute) because gccxml does not correctly output them (e.g. the namespace is ambiguous)
#define LIBT2N_EXPORT   __attribute((gccxml("libt2n-default")))

mark a function to export it via libt2n

Example
    LIBT2N_EXPORT std::string testfunc(const std::string &str)
    {
        // your code here
    }

Generated on 13 May 2015 by  doxygen 1.6.1
© Intra2net AG 2024 | Legal | Contact