MatchDetails.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. "use strict"
  2. // Autogenerated by cport.py on 2013-09-17 14:37
  3. var MatchDetails = module.exports = function (){
  4. }, klass = MatchDetails, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}});
  5. // File: match_details.h lines: 60-60
  6. // boost::scoped_ptr<std::string> _elemMatchKey;
  7. proto._elemMatchKey = undefined;
  8. // File: match_details.h lines: 59-59
  9. // bool _elemMatchKeyRequested;
  10. proto._elemMatchKeyRequested = undefined;
  11. // File: match_details.h lines: 58-58
  12. // bool _loadedRecord;
  13. proto._loadedRecord = undefined;
  14. // File: match_details.h lines: 60-60
  15. // boost::scoped_ptr<std::string> _elemMatchKey;
  16. proto._elemMatchKey = undefined;
  17. // File: match_details.h lines: 59-59
  18. // bool _elemMatchKeyRequested;
  19. proto._elemMatchKeyRequested = undefined;
  20. // File: match_details.h lines: 58-58
  21. // bool _loadedRecord;
  22. proto._loadedRecord = undefined;
  23. /**
  24. *
  25. * This documentation was automatically generated. Please update when you touch this function.
  26. * @method MatchDetails
  27. * @param
  28. *
  29. */
  30. proto.MatchDetails = function MatchDetails( /* */ ){
  31. // File: match_details.cpp lines: 27-29
  32. // MatchDetails::MatchDetails() :
  33. // _elemMatchKeyRequested() {
  34. // resetOutput();
  35. // }
  36. }
  37. /**
  38. *
  39. * This documentation was automatically generated. Please update when you touch this function.
  40. * @method elemMatchKey
  41. * @param
  42. *
  43. */
  44. proto.elemMatchKey = function elemMatchKey( /* */ ){
  45. // File: match_details.cpp lines: 41-43
  46. // std::string MatchDetails::elemMatchKey() const {
  47. // verify( hasElemMatchKey() );
  48. // return *(_elemMatchKey.get());
  49. // }
  50. }
  51. /**
  52. *
  53. * This documentation was automatically generated. Please update when you touch this function.
  54. * @method hasElemMatchKey
  55. * @param
  56. *
  57. */
  58. proto.hasElemMatchKey = function hasElemMatchKey( /* */ ){
  59. // File: match_details.cpp lines: 37-38
  60. // bool MatchDetails::hasElemMatchKey() const {
  61. // return _elemMatchKey.get();
  62. // }
  63. }
  64. /**
  65. *
  66. * This documentation was automatically generated. Please update when you touch this function.
  67. * @method hasLoadedRecord
  68. * @param
  69. *
  70. */
  71. proto.hasLoadedRecord = function hasLoadedRecord( /* */ ){
  72. // File: match_details.h lines: 41-40
  73. // bool hasLoadedRecord() const { return _loadedRecord; }
  74. }
  75. /**
  76. *
  77. * This documentation was automatically generated. Please update when you touch this function.
  78. * @method needRecord
  79. * @param
  80. *
  81. */
  82. proto.needRecord = function needRecord( /* */ ){
  83. // File: match_details.h lines: 45-44
  84. // bool needRecord() const { return _elemMatchKeyRequested; }
  85. }
  86. /**
  87. *
  88. * This documentation was automatically generated. Please update when you touch this function.
  89. * @method requestElemMatchKey
  90. * @param
  91. *
  92. */
  93. proto.requestElemMatchKey = function requestElemMatchKey( /* */ ){
  94. // File: match_details.h lines: 50-49
  95. // void requestElemMatchKey() { _elemMatchKeyRequested = true; }
  96. }
  97. /**
  98. *
  99. * This documentation was automatically generated. Please update when you touch this function.
  100. * @method resetOutput
  101. * @param
  102. *
  103. */
  104. proto.resetOutput = function resetOutput( /* */ ){
  105. // File: match_details.cpp lines: 32-34
  106. // void MatchDetails::resetOutput() {
  107. // _loadedRecord = false;
  108. // _elemMatchKey.reset();
  109. // }
  110. }
  111. /**
  112. *
  113. * This documentation was automatically generated. Please update when you touch this function.
  114. * @method setElemMatchKey
  115. * @param
  116. *
  117. */
  118. proto.setElemMatchKey = function setElemMatchKey( /* const std::string &elemMatchKey */ ){
  119. // File: match_details.cpp lines: 46-49
  120. // void MatchDetails::setElemMatchKey( const std::string &elemMatchKey ) {
  121. // if ( _elemMatchKeyRequested ) {
  122. // _elemMatchKey.reset( new std::string( elemMatchKey ) );
  123. // }
  124. // }
  125. }
  126. /**
  127. *
  128. * This documentation was automatically generated. Please update when you touch this function.
  129. * @method setLoadedRecord
  130. * @param
  131. *
  132. */
  133. proto.setLoadedRecord = function setLoadedRecord( /* bool loadedRecord */ ){
  134. // File: match_details.h lines: 39-38
  135. // void setLoadedRecord( bool loadedRecord ) { _loadedRecord = loadedRecord; }
  136. }
  137. /**
  138. *
  139. * This documentation was automatically generated. Please update when you touch this function.
  140. * @method toString
  141. * @param
  142. *
  143. */
  144. proto.toString = function toString( /* */ ){
  145. // File: match_details.cpp lines: 52-57
  146. // string MatchDetails::toString() const {
  147. // std::stringstream ss;
  148. // ss << "loadedRecord: " << _loadedRecord << " ";
  149. // ss << "elemMatchKeyRequested: " << _elemMatchKeyRequested << " ";
  150. // ss << "elemMatchKey: " << ( _elemMatchKey ? _elemMatchKey->c_str() : "NONE" ) << " ";
  151. // return ss.str();
  152. // }
  153. }