1
0

sourcecodeline.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #include <precomp.h>
  2. #include "sourcecodeline.h"
  3. #ifdef CBCLASS
  4. #undef CBCLASS
  5. #endif
  6. #define CBCLASS SourceCodeLineI
  7. START_DISPATCH;
  8. CB(SOURCECODELINE_GETLINE, getLine);
  9. VCB(SOURCECODELINE_SETLINE, setLine);
  10. CB(SOURCECODELINE_GETPOINTER, getPointer);
  11. VCB(SOURCECODELINE_SETPOINTER, setPointer);
  12. CB(SOURCECODELINE_GETLENGTH, getLength);
  13. VCB(SOURCECODELINE_SETLENGTH, setLength);
  14. VCB(SOURCECODELINE_SETSOURCEFILE, setSourceFile);
  15. CB(SOURCECODELINE_GETSOURCEFILE, getSourceFile);
  16. VCB(SOURCECODELINE_SETSOURCEFILELINE, setSourceFileLine);
  17. CB(SOURCECODELINE_GETSOURCEFILELINE, getSourceFileLine);
  18. END_DISPATCH;
  19. SourceCodeLineI::SourceCodeLineI() {
  20. pointer = -1;
  21. fileline = -1;
  22. length = 0;
  23. }
  24. SourceCodeLineI::~SourceCodeLineI() {
  25. }
  26. const wchar_t *SourceCodeLineI::getLine()
  27. {
  28. return line;
  29. }
  30. void SourceCodeLineI::setLine(const wchar_t *_line) {
  31. line = _line;
  32. }
  33. int SourceCodeLineI::getPointer() {
  34. return pointer;
  35. }
  36. void SourceCodeLineI::setPointer(int _pointer) {
  37. pointer = _pointer;
  38. }
  39. int SourceCodeLineI::getLength() {
  40. return length;
  41. }
  42. void SourceCodeLineI::setLength(int _length) {
  43. length = _length;
  44. }
  45. void SourceCodeLineI::setSourceFile(const wchar_t *_file) {
  46. file = _file;
  47. }
  48. const wchar_t *SourceCodeLineI::getSourceFile() {
  49. return file;
  50. }
  51. void SourceCodeLineI::setSourceFileLine(int _linenumber) {
  52. fileline = _linenumber;
  53. }
  54. int SourceCodeLineI::getSourceFileLine() {
  55. return fileline;
  56. }