|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 using System; |
|
18 using System.Collections.Generic; |
|
19 using System.Text; |
|
20 using System.Text.RegularExpressions; |
|
21 using System.Reflection; |
|
22 using System.ComponentModel; |
|
23 using SymbianParserLib.Enums; |
|
24 |
|
25 namespace SymbianParserLib.Elements.SubFields |
|
26 { |
|
27 internal class ParserFieldFormatValue |
|
28 { |
|
29 #region Constructors |
|
30 public ParserFieldFormatValue( ParserField aField ) |
|
31 { |
|
32 iField = aField; |
|
33 } |
|
34 |
|
35 internal ParserFieldFormatValue( ParserField aField, ParserFieldFormatValue aCopy ) |
|
36 : this( aField ) |
|
37 { |
|
38 } |
|
39 #endregion |
|
40 |
|
41 #region API |
|
42 public void SetValueString( string aValue ) |
|
43 { |
|
44 iValue = aValue; |
|
45 } |
|
46 |
|
47 public void SetValueUint( uint aValue ) |
|
48 { |
|
49 iValue = aValue; |
|
50 } |
|
51 |
|
52 public void SetValueUint64( ulong aValue ) |
|
53 { |
|
54 iValue = aValue; |
|
55 } |
|
56 |
|
57 public void SetValueInt( int aValue ) |
|
58 { |
|
59 iValue = aValue; |
|
60 } |
|
61 #endregion |
|
62 |
|
63 #region Properties |
|
64 public object Value |
|
65 { |
|
66 get { return iValue; } |
|
67 } |
|
68 |
|
69 internal ParserField Field |
|
70 { |
|
71 get { return iField; } |
|
72 } |
|
73 #endregion |
|
74 |
|
75 #region Internal methods |
|
76 #endregion |
|
77 |
|
78 #region Internal constants |
|
79 #endregion |
|
80 |
|
81 #region From System.Object |
|
82 public override string ToString() |
|
83 { |
|
84 return base.ToString(); |
|
85 } |
|
86 #endregion |
|
87 |
|
88 #region Data members |
|
89 private readonly ParserField iField; |
|
90 private object iValue = null; |
|
91 #endregion |
|
92 } |
|
93 } |