bin/rmf_validate.cpp
/**
* Copyright 2007-2022 IMP Inventors. All rights reserved.
*/
#include <exception>
#include <iostream>
#include <string>
#include "RMF/FileConstHandle.h"
#include "RMF/validate.h"
#include "common.h"
namespace {
std::string description = "Validate a saved RMF file.";
}
int main(int argc, char** argv) {
try {
RMF_ADD_INPUT_FILE("rmf");
process_options(argc, argv);
RMF::FileConstHandle rh = RMF::open_rmf_file_read_only(input);
RMF::validate(rh);
return 0;
}
catch (const std::exception& e) {
std::cerr << "Error: " << e.what() << std::endl;
}
}