AttributeConstants.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef ATTRIBUTECONSTANTS_H
  2. #define ATTRIBUTECONSTANTS_H
  3. //**********************************************************
  4. /* TAG NAMES */
  5. //***********************************************************
  6. #define GRAPHML "graphml"
  7. #define XML_EXTN "xml"
  8. #define NODE "node"
  9. #define GRAPH "graph"
  10. #define EDGE "edge"
  11. #define DATA "data"
  12. #define KEY "key"
  13. #define DEFAULT "default"
  14. #define NODE_ID "id"
  15. #define NODE_TYPE "type"
  16. #define NODE_HEIGHT "height"
  17. #define NODE_WIDTH "width"
  18. #define NODE_COORDINATE_X "coord_x"
  19. #define NODE_COORDINATE_Y "coord_y"
  20. #define EDGE_ID "id"
  21. #define EDGE_TYPE "type"
  22. #define SOURCE_OF_EDGE "source"
  23. #define TARGET_OF_EDGE "target"
  24. #define EDGE_TYPE "type"
  25. #define EDGE_BIDIRECTIONAL "bidirectional"
  26. #define EDGE_BENDPOINTS "bendpoints"
  27. #define BEND "bend"
  28. #define XVALUE "X"
  29. #define YVALUE "Y"
  30. #define GRAPH_ID "id"
  31. #define GRAPH_NODE_ID_PREFIX "n_"
  32. #define GRAPH_ID_PREFIX "G"
  33. #define KEY_ID_PREFIX "key"
  34. #define FOR "for"
  35. #define KEY_ID "id"
  36. #define ATTR_NAME "attr.name"
  37. #define ATTR_TYPE "attr.type"
  38. #define BOOL_TYPE_STRING "boolean"
  39. #define INT_TYPE_STRING "integer"
  40. #define DOUBL_TYPE_STRING "double"
  41. #define TRUE_VALUE "true"
  42. #define FALSE_VALUE "false"
  43. #define NOT_GRAPHML_FILE "not graphml file"
  44. #define INVALID_VERSION "invalid version"
  45. #define INVALID_ENCODING "invalid encoding"
  46. #define VERSION "version"
  47. #define VERSION_VALUE "1.0"
  48. #define ENCODING "encoding"
  49. #define ENCODING_VALUE "UTF-8"
  50. #define OPEN_GRAPHML_FILE "Open GraphML File"
  51. #define GRAPHML_FILE "GraphML Files (*.graphml *.xml)"
  52. #define FILE_LOADED "File loaded"
  53. #define GRAPHML_READER "GraphML Reader"
  54. #define CANT_READ_FILE "Cannot read file %1:\n%2."
  55. #define GRAPHML_VALIDATION "GraphML Validation"
  56. //#define SCHEMA_FILE_PATH "D:\\SVN\\Graph_Layouting_Algorithms\\GraphLayout\\Dependencies\\graphML1.xsd"
  57. #define SCHEMA_FILE_PATH ":/validation/graphML1.xsd"
  58. // Exception Handling Constants
  59. #define EMPTY_ID_FOUND "empty id found for the node"
  60. #define EMPTY_STRING_VALUE ""
  61. #define INVALID_EDGE_PARAMETER "invalid value for source or target vertex"
  62. #define LOCAL_TO_GLOBAL "local to global index problem"
  63. #define FORWARD_REFERENCE "forward reference problem for node in add edge"
  64. #endif // ATTRIBUTECONSTANTS_H