XCctvList.cpp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // *************************************************************************************** //
  2. //
  3. // XML Data Binding
  4. //
  5. // Generated on: 2014-09-29 16:59:24
  6. // Generated from: C:\DEV\ITS\01.WINDOWS\03.CctvMonitoring\RUN\Cfg\XCctvList.xml
  7. //
  8. // *************************************************************************************** //
  9. #include <vcl.h>
  10. #pragma hdrstop
  11. #include "XCctvList.h"
  12. // Global Functions
  13. _di_IXMLCctvListType __fastcall GetCctvList(_di_IXMLDocument Doc)
  14. {
  15. return (_di_IXMLCctvListType) Doc->GetDocBinding("CctvList", __classid(TXMLCctvListType), TargetNamespace);
  16. };
  17. _di_IXMLCctvListType __fastcall GetCctvList(TXMLDocument *Doc)
  18. {
  19. _di_IXMLDocument DocIntf;
  20. Doc->GetInterface(DocIntf);
  21. return GetCctvList(DocIntf);
  22. };
  23. _di_IXMLCctvListType __fastcall LoadCctvList(const UnicodeString& FileName)
  24. {
  25. return (_di_IXMLCctvListType) LoadXMLDocument(FileName)->GetDocBinding("CctvList", __classid(TXMLCctvListType), TargetNamespace);
  26. };
  27. _di_IXMLCctvListType __fastcall NewCctvList()
  28. {
  29. return (_di_IXMLCctvListType) NewXMLDocument()->GetDocBinding("CctvList", __classid(TXMLCctvListType), TargetNamespace);
  30. };
  31. // TXMLCctvListType
  32. void __fastcall TXMLCctvListType::AfterConstruction(void)
  33. {
  34. RegisterChildNode(UnicodeString("Cctv"), __classid(TXMLCctvType));
  35. ItemTag = "Cctv";
  36. ItemInterface = __uuidof(IXMLCctvType);
  37. TXMLNodeCollection::AfterConstruction();
  38. };
  39. _di_IXMLCctvType __fastcall TXMLCctvListType::Get_Cctv(int Index)
  40. {
  41. return (_di_IXMLCctvType) TXMLNodeCollection::List->Nodes[Index];
  42. };
  43. _di_IXMLCctvType __fastcall TXMLCctvListType::Add()
  44. {
  45. return (_di_IXMLCctvType) AddItem(-1);
  46. };
  47. _di_IXMLCctvType __fastcall TXMLCctvListType::Insert(const int Index)
  48. {
  49. return (_di_IXMLCctvType) AddItem(Index);
  50. };
  51. // TXMLCctvType
  52. UnicodeString __fastcall TXMLCctvType::Get_Id()
  53. {
  54. return TXMLNode::ChildNodes->Nodes[UnicodeString("Id")]->Text;
  55. };
  56. void __fastcall TXMLCctvType::Set_Id(UnicodeString Value)
  57. {
  58. TXMLNode::ChildNodes->Nodes[UnicodeString("Id")]->NodeValue = Value;
  59. };
  60. UnicodeString __fastcall TXMLCctvType::Get_Group()
  61. {
  62. return TXMLNode::ChildNodes->Nodes[UnicodeString("Group")]->Text;
  63. };
  64. void __fastcall TXMLCctvType::Set_Group(UnicodeString Value)
  65. {
  66. TXMLNode::ChildNodes->Nodes[UnicodeString("Group")]->NodeValue = Value;
  67. };
  68. UnicodeString __fastcall TXMLCctvType::Get_Name()
  69. {
  70. return TXMLNode::ChildNodes->Nodes[UnicodeString("Name")]->Text;
  71. };
  72. void __fastcall TXMLCctvType::Set_Name(UnicodeString Value)
  73. {
  74. TXMLNode::ChildNodes->Nodes[UnicodeString("Name")]->NodeValue = Value;
  75. };
  76. UnicodeString __fastcall TXMLCctvType::Get_StreamingType()
  77. {
  78. return TXMLNode::ChildNodes->Nodes[UnicodeString("StreamingType")]->Text;
  79. };
  80. void __fastcall TXMLCctvType::Set_StreamingType(UnicodeString Value)
  81. {
  82. TXMLNode::ChildNodes->Nodes[UnicodeString("StreamingType")]->NodeValue = Value;
  83. };
  84. UnicodeString __fastcall TXMLCctvType::Get_ViewAddress()
  85. {
  86. return TXMLNode::ChildNodes->Nodes[UnicodeString("ViewAddress")]->Text;
  87. };
  88. void __fastcall TXMLCctvType::Set_ViewAddress(UnicodeString Value)
  89. {
  90. TXMLNode::ChildNodes->Nodes[UnicodeString("ViewAddress")]->NodeValue = Value;
  91. };
  92. UnicodeString __fastcall TXMLCctvType::Get_FullAddress()
  93. {
  94. return TXMLNode::ChildNodes->Nodes[UnicodeString("FullAddress")]->Text;
  95. };
  96. void __fastcall TXMLCctvType::Set_FullAddress(UnicodeString Value)
  97. {
  98. TXMLNode::ChildNodes->Nodes[UnicodeString("FullAddress")]->NodeValue = Value;
  99. };