MatchDetails.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. "use strict";
  2. // Autogenerated by cport.py on 2013-09-17 14:37
  3. var MatchDetails = module.exports = function (){
  4. // File: match_details.cpp lines: 27-29
  5. this._elemMatchKeyRequested = false;
  6. this.resetOutput();
  7. }, klass = MatchDetails, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  8. // File: match_details.h lines: 60-60
  9. proto._elemMatchKey = undefined;
  10. // File: match_details.h lines: 59-59
  11. proto._elemMatchKeyRequested = undefined;
  12. // File: match_details.h lines: 58-58
  13. proto._loadedRecord = undefined;
  14. /**
  15. *
  16. * This documentation was automatically generated. Please update when you touch this function.
  17. * @method elemMatchKey
  18. * @param
  19. *
  20. */
  21. proto.elemMatchKey = function elemMatchKey(){
  22. // File: match_details.cpp lines: 41-43
  23. if (!this.hasElemMatchKey()) throw new Error("no elem match key MatchDetails:29");
  24. return this._elemMatchKey.get();
  25. };
  26. /**
  27. *
  28. * This documentation was automatically generated. Please update when you touch this function.
  29. * @method hasElemMatchKey
  30. * @param
  31. *
  32. */
  33. proto.hasElemMatchKey = function hasElemMatchKey(){
  34. // File: match_details.cpp lines: 37-38
  35. return this._elemMatchKey.get();
  36. };
  37. /**
  38. *
  39. * This documentation was automatically generated. Please update when you touch this function.
  40. * @method hasLoadedRecord
  41. * @param
  42. *
  43. */
  44. proto.hasLoadedRecord = function hasLoadedRecord(){
  45. // File: match_details.h lines: 41-40
  46. return this._loadedRecord;
  47. };
  48. /**
  49. *
  50. * This documentation was automatically generated. Please update when you touch this function.
  51. * @method needRecord
  52. * @param
  53. *
  54. */
  55. proto.needRecord = function needRecord(){
  56. // File: match_details.h lines: 45-44
  57. return this._elemMatchKeyRequested;
  58. };
  59. /**
  60. *
  61. * This documentation was automatically generated. Please update when you touch this function.
  62. * @method requestElemMatchKey
  63. * @param
  64. *
  65. */
  66. proto.requestElemMatchKey = function requestElemMatchKey(){
  67. // File: match_details.h lines: 50-49
  68. this._elemMatchKeyRequested = true;
  69. };
  70. /**
  71. *
  72. * This documentation was automatically generated. Please update when you touch this function.
  73. * @method resetOutput
  74. * @param
  75. *
  76. */
  77. proto.resetOutput = function resetOutput(){
  78. // File: match_details.cpp lines: 32-34
  79. this._loadedRecord = false;
  80. this._elemMatchKey.reset();
  81. };
  82. /**
  83. *
  84. * This documentation was automatically generated. Please update when you touch this function.
  85. * @method setElemMatchKey
  86. * @param
  87. *
  88. */
  89. proto.setElemMatchKey = function setElemMatchKey(elemMatchKey){
  90. // File: match_details.cpp lines: 46-49
  91. if ( this._elemMatchKeyRequested ) {
  92. this._elemMatchKey.reset(elemMatchKey);
  93. }
  94. };
  95. /**
  96. *
  97. * This documentation was automatically generated. Please update when you touch this function.
  98. * @method setLoadedRecord
  99. * @param
  100. *
  101. */
  102. proto.setLoadedRecord = function setLoadedRecord(loadedRecord){
  103. // File: match_details.h lines: 39-38
  104. this._loadedRecord = loadedRecord;
  105. };
  106. /**
  107. *
  108. * This documentation was automatically generated. Please update when you touch this function.
  109. * @method toString
  110. * @param
  111. *
  112. */
  113. proto.toString = function toString(){
  114. // File: match_details.cpp lines: 52-57
  115. return "loadedRecord: " + this._loadedRecord + " " + "elemMatchKeyRequested: " + this._elemMatchKeyRequested + " " + "elemMatchKey: " + ( this._elemMatchKey ? this._elemMatchKey : "NONE" ) + " ";
  116. };