DEADSOFTWARE

Rename .ih files to module.ih for simplicity
[odcread.git] / alien / alien.cc
1 #include "alien/module.ih"
3 namespace odc {
5 Alien::Alien(INTEGER id, const TypePath &path): Store(id), d_path(path), d_comps() {}
7 std::vector<AlienComponent*> & Alien::getComponents() {
8 return d_comps;
9 }
11 std::string Alien::toString() {
12 std::string sofar = d_path.toString() + "{ ";
13 for (int i = 0; i < d_comps.size(); ++i) {
14 sofar += d_comps[i]->toString() + " ";
15 }
16 return sofar + "}";
17 }
19 void Alien::accept(Visitor &visitor) const {
20 for (int i = 0; i < d_comps.size(); ++i) {
21 d_comps[i]->accept(visitor);
22 }
23 }
25 } // namespace odc