"use strict"; // Autogenerated by cport.py on 2013-09-17 14:37 var MatchDetails = module.exports = function (){ // File: match_details.cpp lines: 27-29 this._elemMatchKeyRequested = false; this.resetOutput(); }, klass = MatchDetails, base = Object , proto = klass.prototype = Object.create(base.prototype, {constructor:{value:klass}}); // File: match_details.h lines: 60-60 proto._elemMatchKey = undefined; // File: match_details.h lines: 59-59 proto._elemMatchKeyRequested = undefined; // File: match_details.h lines: 58-58 proto._loadedRecord = undefined; /** * * Return the _elemMatchKey property * @method elemMatchKey * */ proto.elemMatchKey = function elemMatchKey(){ // File: match_details.cpp lines: 41-43 if (!this.hasElemMatchKey()) throw new Error("no elem match key MatchDetails:29"); return this._elemMatchKey; }; /** * * Return the _elemMatchKey property so we can check if exists * @method hasElemMatchKey * */ proto.hasElemMatchKey = function hasElemMatchKey(){ // File: match_details.cpp lines: 37-38 return this._elemMatchKey; }; /** * * Return the _loadedRecord property * @method hasLoadedRecord * */ proto.hasLoadedRecord = function hasLoadedRecord(){ // File: match_details.h lines: 41-40 return this._loadedRecord; }; /** * * Return the _elemMatchKeyRequested property * @method needRecord * */ proto.needRecord = function needRecord(){ // File: match_details.h lines: 45-44 return this._elemMatchKeyRequested; }; /** * * Set the _elemMatchKeyRequested property to true * @method requestElemMatchKey * */ proto.requestElemMatchKey = function requestElemMatchKey(){ // File: match_details.h lines: 50-49 this._elemMatchKeyRequested = true; }; /** * * Set _loadedRecord to false and _elemMatchKey to undefined * @method resetOutput * */ proto.resetOutput = function resetOutput(){ // File: match_details.cpp lines: 32-34 this._loadedRecord = false; this._elemMatchKey = undefined; }; /** * * If we request an _elemMatchKey then set it to the input * @method setElemMatchKey * @param elemMatchKey * */ proto.setElemMatchKey = function setElemMatchKey(elemMatchKey){ // File: match_details.cpp lines: 46-49 if ( this._elemMatchKeyRequested ) { this._elemMatchKey = elemMatchKey; } }; /** * * Set the _loadedRecord property * @method setLoadedRecord * @param loadedRecord * */ proto.setLoadedRecord = function setLoadedRecord(loadedRecord){ // File: match_details.h lines: 39-38 this._loadedRecord = loadedRecord; }; /** * * Return a string representation of ourselves * @method toString * */ proto.toString = function toString(){ // File: match_details.cpp lines: 52-57 return "loadedRecord: " + this._loadedRecord + " " + "elemMatchKeyRequested: " + this._elemMatchKeyRequested + " " + "elemMatchKey: " + ( this._elemMatchKey ? this._elemMatchKey : "NONE" ) + " "; };