fix 2 compiler warnings in modelgen
[gnucap-felix.git] / modules / d_gpolyk_wrap.cc
blob55dd838bed8886a782ba67f7d546f1fae3882c5d
1 #include <globals.h>
2 #include <e_compon.h>
4 namespace {
5 using std::string;
7 class DEV_G_POLY_K : public COMPONENT { //
8 public:
9 string value_name() const { return "dummy"; }
10 string port_name(uint_t) const { return "dummy"; }
12 CARD* clone()const
14 const CARD* c = device_dispatcher["cpoly_g"];
15 assert(c);
16 CARD* c2 = c->clone();
17 COMPONENT* d = prechecked_cast<COMPONENT*>(c2);
18 assert(d);
19 const COMMON_COMPONENT* b = bm_dispatcher["poly_k"];
20 assert(b);
21 COMMON_COMPONENT* bc = b->clone();
22 d->attach_common(bc);
23 // d->set_dev_type("g_poly_k");
24 // assert(d->dev_type() == "g_poly_k");
25 return d;
27 }p1;
29 DISPATCHER<CARD>::INSTALL d1(&device_dispatcher, "g_poly_k|G_poly", &p1);