DEADSOFTWARE

Rename .ih files to module.ih for simplicity
[odcread.git] / reader / readStore.cc
1 #include "reader/module.ih"
3 namespace odc {
5 Store* Reader::readStore() {
6 SHORTCHAR kind = readSChar();
7 if (kind == Store::NIL) {
8 //std::cout << "NIL STORE" << std::endl;
9 return readNilStore();
10 } else if (kind == Store::LINK) {
11 //std::cout << "LINK STORE" << std::endl;
12 return readLinkStore();
13 } else if (kind == Store::NEWLINK) {
14 //std::cout << "NEWLINK STORE" << std::endl;
15 return readNewLinkStore();
16 } else if (kind == Store::STORE) {
17 //std::cout << "STORE STORE" << std::endl;
18 return readStoreOrElemStore(false);
19 } else if (kind == Store::ELEM) {
20 //std::cout << "ELEM STORE" << std::endl;
21 return readStoreOrElemStore(true);
22 } else {
23 //std::cout << std::hex << (unsigned int)kind << std::endl;
24 throw 20;
25 }
26 }
28 } // namespace odc