PenetrateBase/PenetrateBasic/main.cpp

48 lines
870 B
C++
Raw Normal View History

2024-11-11 08:29:59 +00:00
#include <QtCore/QCoreApplication>
#include <qdebug.h>
#include "cmds_basic.h"
#include "dispatch.h"
#include "cmds.h"
int vp(int c) {
qDebug() << c;
return c;
}
namespace xproc {
int xmp(int arg) {
qDebug() << "xmp";
return 3;
}
}
2024-11-17 14:08:08 +00:00
cmds::T<int(int)>::Cmd<vp> entry("hello");
cmds::T<int(int)>::Cmd<xproc::xmp> xvv("sfaf");
#include "validation.h"
validate::ValidateHelper<(void*)vp, int, int> helper;
2024-11-11 08:29:59 +00:00
using namespace Inlet;
int main(int argc, char* argv[]) {
QCoreApplication a(argc, argv);
SignatureImpl<int, int> v(3);
v.execute(vp);
Callable<int, int> vptr = vp;
CmdsImpl<(void*) vp, int, int> exec;
exec.execute(5);
entry(50);
2024-11-17 14:08:08 +00:00
xvv(2);
2024-11-11 08:29:59 +00:00
return a.exec();
}
template<> void datas::dataSet<int>(IDataObject& object, const QString& key, int value) { }
template<> int datas::dataGet<int>(IDataObject& object, const QString& key) {
return 0;
}