Download weight/_dep/libcifpp/test/io-test.cpp from OneScience-Group/AlphaFold3: direct link, hf CLI and curl.
- Browser
- Download file 604 Bytes
-
https://huggingface.co/OneScience-Group/AlphaFold3/resolve/main/weight/_dep/libcifpp/test/io-test.cpp
- Command line
-
hf download hf://OneScience-Group/AlphaFold3/weight/_dep/libcifpp/test/io-test.cpp
-
curl -L -o io-test.cpp https://huggingface.co/OneScience-Group/AlphaFold3/resolve/main/weight/_dep/libcifpp/test/io-test.cpp
604 Bytes
| class dummy_parser : public cif::sac_parser | |
| { | |
| public: | |
| dummy_parser(std::istream &is) | |
| : sac_parser(is) | |
| { | |
| } | |
| void produce_datablock(std::string_view name) override | |
| { | |
| } | |
| void produce_category(std::string_view name) override | |
| { | |
| } | |
| void produce_row() override | |
| { | |
| } | |
| void produce_item(std::string_view category, std::string_view item, std::string_view value) override | |
| { | |
| } | |
| }; | |
| int main() | |
| { | |
| cif::gzio::ifstream in("/srv/data/pdb/mmCIF/gl/8glv.cif.gz"); | |
| dummy_parser parser(in); | |
| parser.parse_file(); | |
| // cif::file f("/srv/data/pdb/mmCIF/gl/8glv.cif.gz"); | |
| return 0; | |
| } |