1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
|
/*
* File: Args_Cfcomplex_Impl.c
* Symbol: Args.Cfcomplex-v1.0
* Symbol Type: class
* Babel Version: 0.10.2
* Description: Server-side implementation for Args.Cfcomplex
*
* WARNING: Automatically generated; only changes within splicers preserved
*
* babel-version = 0.10.2
*/
/*
* DEVELOPERS ARE EXPECTED TO PROVIDE IMPLEMENTATIONS
* FOR THE FOLLOWING METHODS BETWEEN SPLICER PAIRS.
*/
/*
* Symbol "Args.Cfcomplex" (version 1.0)
*/
#include "Args_Cfcomplex_Impl.h"
#line 24 "../../../../babel/regression/args/libC/Args_Cfcomplex_Impl.c"
/* DO-NOT-DELETE splicer.begin(Args.Cfcomplex._includes) */
/* Put additional includes or other arbitrary code here... */
/* DO-NOT-DELETE splicer.end(Args.Cfcomplex._includes) */
#line 28 "Args_Cfcomplex_Impl.c"
/*
* Static class initializer called exactly once before any user-defined method is dispatched
*/
#undef __FUNC__
#define __FUNC__ "impl_Args_Cfcomplex__load"
void
impl_Args_Cfcomplex__load(
void)
{
#line 39 "../../../../babel/regression/args/libC/Args_Cfcomplex_Impl.c"
/* DO-NOT-DELETE splicer.begin(Args.Cfcomplex._load) */
/* Insert the implementation of the static class initializer method here... */
/* DO-NOT-DELETE splicer.end(Args.Cfcomplex._load) */
#line 45 "Args_Cfcomplex_Impl.c"
}
/*
* Class constructor called when the class is created.
*/
#undef __FUNC__
#define __FUNC__ "impl_Args_Cfcomplex__ctor"
void
impl_Args_Cfcomplex__ctor(
/* in */ Args_Cfcomplex self)
{
#line 54 "../../../../babel/regression/args/libC/Args_Cfcomplex_Impl.c"
/* DO-NOT-DELETE splicer.begin(Args.Cfcomplex._ctor) */
/* DO-NOT-DELETE splicer.end(Args.Cfcomplex._ctor) */
#line 61 "Args_Cfcomplex_Impl.c"
}
/*
* Class destructor called when the class is deleted.
*/
#undef __FUNC__
#define __FUNC__ "impl_Args_Cfcomplex__dtor"
void
impl_Args_Cfcomplex__dtor(
/* in */ Args_Cfcomplex self)
{
#line 69 "../../../../babel/regression/args/libC/Args_Cfcomplex_Impl.c"
/* DO-NOT-DELETE splicer.begin(Args.Cfcomplex._dtor) */
/* DO-NOT-DELETE splicer.end(Args.Cfcomplex._dtor) */
#line 78 "Args_Cfcomplex_Impl.c"
}
/*
* Method: returnback[]
*/
#undef __FUNC__
#define __FUNC__ "impl_Args_Cfcomplex_returnback"
struct sidl_fcomplex
impl_Args_Cfcomplex_returnback(
/* in */ Args_Cfcomplex self)
{
#line 84 "../../../../babel/regression/args/libC/Args_Cfcomplex_Impl.c"
/* DO-NOT-DELETE splicer.begin(Args.Cfcomplex.returnback) */
struct sidl_fcomplex c = {3.1F, 3.1F};
return c;
/* DO-NOT-DELETE splicer.end(Args.Cfcomplex.returnback) */
#line 97 "Args_Cfcomplex_Impl.c"
}
/*
* Method: passin[]
*/
#undef __FUNC__
#define __FUNC__ "impl_Args_Cfcomplex_passin"
sidl_bool
impl_Args_Cfcomplex_passin(
/* in */ Args_Cfcomplex self,
/* in */ struct sidl_fcomplex c)
{
#line 102 "../../../../babel/regression/args/libC/Args_Cfcomplex_Impl.c"
/* DO-NOT-DELETE splicer.begin(Args.Cfcomplex.passin) */
return (3.1F == c.real && 3.1F == c.imaginary);
/* DO-NOT-DELETE splicer.end(Args.Cfcomplex.passin) */
#line 116 "Args_Cfcomplex_Impl.c"
}
/*
* Method: passout[]
*/
#undef __FUNC__
#define __FUNC__ "impl_Args_Cfcomplex_passout"
sidl_bool
impl_Args_Cfcomplex_passout(
/* in */ Args_Cfcomplex self,
/* out */ struct sidl_fcomplex* c)
{
#line 119 "../../../../babel/regression/args/libC/Args_Cfcomplex_Impl.c"
/* DO-NOT-DELETE splicer.begin(Args.Cfcomplex.passout) */
c->real = c->imaginary = 3.1F;
return TRUE;
/* DO-NOT-DELETE splicer.end(Args.Cfcomplex.passout) */
#line 136 "Args_Cfcomplex_Impl.c"
}
/*
* Method: passinout[]
*/
#undef __FUNC__
#define __FUNC__ "impl_Args_Cfcomplex_passinout"
sidl_bool
impl_Args_Cfcomplex_passinout(
/* in */ Args_Cfcomplex self,
/* inout */ struct sidl_fcomplex* c)
{
#line 137 "../../../../babel/regression/args/libC/Args_Cfcomplex_Impl.c"
/* DO-NOT-DELETE splicer.begin(Args.Cfcomplex.passinout) */
c->imaginary = - c->imaginary;
return TRUE;
/* DO-NOT-DELETE splicer.end(Args.Cfcomplex.passinout) */
#line 156 "Args_Cfcomplex_Impl.c"
}
/*
* Method: passeverywhere[]
*/
#undef __FUNC__
#define __FUNC__ "impl_Args_Cfcomplex_passeverywhere"
struct sidl_fcomplex
impl_Args_Cfcomplex_passeverywhere(
/* in */ Args_Cfcomplex self,
/* in */ struct sidl_fcomplex c1,
/* out */ struct sidl_fcomplex* c2,
/* inout */ struct sidl_fcomplex* c3)
{
#line 157 "../../../../babel/regression/args/libC/Args_Cfcomplex_Impl.c"
/* DO-NOT-DELETE splicer.begin(Args.Cfcomplex.passeverywhere) */
struct sidl_fcomplex c4 = {3.1F, 3.1F};
struct sidl_fcomplex c5 = {0.0F, 0.0F};
c2->imaginary = c2->real = 3.1F;
c3->imaginary = - c3->imaginary;
if (3.1F == c1.real && 3.1F == c1.imaginary) {
return c4;
}
else {
return c5;
}
/* DO-NOT-DELETE splicer.end(Args.Cfcomplex.passeverywhere) */
#line 186 "Args_Cfcomplex_Impl.c"
}
|