2
0

json.cpp 683 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include "JSONParser.h"
  4. #include "Filesystem.h"
  5. #include "DiskFile.h"
  6. using namespace crown;
  7. // REMOVE JSON SAMPLE, ADD UNIT TEST
  8. int main(int argc, char** argv)
  9. {
  10. // if (argc != 2)
  11. // {
  12. // printf("Configuration root path must be provided. Aborting!");
  13. // return -1;
  14. // }
  15. // Filesystem conf_root(argv[1]);
  16. // if (!conf_root.exists("json.json"))
  17. // {
  18. // printf("Configuration file does not exists. Aborting!\n");
  19. // return -1;
  20. // }
  21. // char dst[10][256];
  22. // DiskFile* stream = (DiskFile*)conf_root.open("json.json", FOM_READ);
  23. // JSONParser* parser = new JSONParser(stream);
  24. // conf_root.close(stream);
  25. return 0;
  26. }