-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathovf_diff.cpp
More file actions
31 lines (29 loc) · 774 Bytes
/
Copy pathovf_diff.cpp
File metadata and controls
31 lines (29 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#include "busybox.hpp"
#include "oommf.hpp"
#include "files.hpp"
#include "lib-zlib.hpp"
#include "text.hpp"
#include "vf.hpp"
#include "filepath.hpp"
#include "lib-png.hpp"
#include "newdisplay.hpp"
#include "comsol.hpp"
#include "tfield_io.hpp"
int ovf_diff_tool_main(int argc,char **argv){
std::vector<std::string> args(argv,argv+argc);
if (argc==4){
rcl::ffield ovf1,ovf2;
rcl::load_vecfile(ovf1,args[1]);
rcl::load_vecfile(ovf2,args[2]);
std::vector<unsigned char> ovfb;
rcl::saveOVF2vm(ovfb,ovf1-ovf2);
rcl::save_file(args[3],ovfb);
}
else{
std::cout << argv[0] << "fichero1.ovf fichero2.ovf ficheros.ovf"<< std::endl;
return 1;
}
return 0;
}
static rcl::reg_app reg("ovf_diff_tool",ovf_diff_tool_main);