- /*
- * P4.Net *
- Copyright (c) 2007 Shawn Hladky
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
- and associated documentation files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following conditions:
- The above copyright notice and this permission notice shall be included in all copies or
- substantial portions of the Software.
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
- BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- */
- using System;
- using System.Collections;
- using System.Text;
- namespace P4API
- {
- internal class P4FormRecordSet : P4BaseRecordSet
- {
- private string _FormCommand;
- private System.Text.Encoding _encoding;
- private P4Form _Form;
- internal P4FormRecordSet(string FormCommand, System.Text.Encoding encoding)
- {
- // clone this so we don't hold a reference to another object's encoding object
- // preventing it from Garbage collecting.
- _encoding = (System.Text.Encoding) encoding.Clone();
- _FormCommand = FormCommand;
- }
- //internal override void AddTag(Hashtable S)
- //{
- // _Form = new P4Form(_FormCommand, base.SpecDef, S, _encoding);
- //}
- internal override void AddRecord(P4Record r)
- {
- _Form = new P4Form(_FormCommand, base.SpecDef, r.AllFieldDictionary, _encoding);
- }
- internal P4Form Form
- {
- get
- {
- return _Form;
- }
- }
- }
- }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 6335 | Jim Gomes | Branch P4.Net. | 17 years ago | |
//guest/shawn_hladky/P4.Net/main/src/P4API/P4FormRecordSet.cs | |||||
#4 | 6238 | Shawn Hladky | P4.Net: More work on callback interface. Run and RunUnparsed now use the callback... interface under the covers. « |
17 years ago | |
#3 | 6223 | Shawn Hladky |
P4.Net. Fixing bug when running Fetch_Form and Connect() is has not been called. |
17 years ago | |
#2 | 5878 | Shawn Hladky | P4.Net: 1.0, support for raw spec processing. Update copyright. Fix bu...ild script. Bugs found along the way. « |
18 years ago | |
#1 | 5830 | Shawn Hladky | P4.Net: reorg to support release branches | 18 years ago | |
//guest/shawn_hladky/P4.Net/src/P4API/P4FormRecordSet.cs | |||||
#2 | 5798 | Shawn Hladky | P4.Net... still not ready for beta Added license to all files Added several doc fi...les Misc bugs « |
18 years ago | |
#1 | 5433 | Shawn Hladky | P4.Net More refactoring | 19 years ago |