MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
BaseDescriptor.cs
1using System;
2using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
12{
17 [Serializable]
18 public class BaseDescriptor
19 {
20 int m_nID;
21 string m_strName;
22 string m_strOwner;
23
30 public BaseDescriptor(int nID, string strName, string strOwner)
31 {
32 m_nID = nID;
33 m_strName = strName;
34 }
35
41 : this(b.ID, b.Name, b.Owner)
42 {
43 }
44
49 public void Copy(BaseDescriptor b)
50 {
51 m_nID = b.ID;
52 m_strName = b.Name;
53 m_strOwner = b.Owner;
54 }
55
59 [ReadOnly(true)]
60 public int ID
61 {
62 get { return m_nID; }
63 set { m_nID = value; }
64 }
65
69 [ReadOnly(true)]
70 public string Name
71 {
72 get { return m_strName; }
73 set { m_strName = value; }
74 }
75
79 [ReadOnly(true)]
80 [Browsable(false)]
81 public string Owner
82 {
83 get { return m_strOwner; }
84 set { m_strOwner = value; }
85 }
86 }
87}
The BaseDescriptor is the base class for all other descriptors, where descriptors are used to describ...
BaseDescriptor(int nID, string strName, string strOwner)
The BaseDescriptor constructor.
string Owner
Get/set the owner of the item.
BaseDescriptor(BaseDescriptor b)
The BaseDescriptor constructor.
int ID
Get/set the database ID of the item.
void Copy(BaseDescriptor b)
Copy another BaseDescriptor into this one.
string Name
Get/set the name of the item.
The descriptors namespace contains all descriptor used to describe various items stored within the da...