public string BackGColor(DaIBase src)
        {
            DICnvtrBase cv = GetCv();

            if (cv != null)
            {
                uint myrd;
                src.GetOut(out myrd);
                return(cv.BackGColor(myrd));
            }
            else
            {
                return(null);
            }
        }
        public void GetOut(out string o, DaIBase src)
        {
            DICnvtrBase cv = GetCv();

            if (cv != null)
            {
                uint myrd;
                src.GetOut(out myrd);
                o = cv.ConvertOut(myrd);
            }
            else
            {
                o = "";
            }
        }
        public bool SetIn(string val, DaIBase src)
        {
            bool        r  = false;
            DICnvtrBase cv = GetCv();

            if (cv != null)
            {
                uint myrd;
                src.GetOut(out myrd);
                r = cv.ConvertIn(val, ref myrd);
                src.SetIn(myrd);
            }
            // implied else is do nothing
            return(r);
        }
 public virtual bool SetIn(uint val, DaIBase src)
 {
     throw new Exception("Override expected.");
 }
 public string PropNam(DaIBase src)
 {
     return(src.PropNam + "_" + _key);
 }
 public virtual void GetOut(out uint o, DaIBase src)
 {
     throw new Exception("Override expected.");
 }
Exemple #7
0
 public DaIAdaptBase(DaK k, DaIBase daii)
 {
     myK    = k;
     myDaii = daii;
 }
 public SubDaIAdaptBase(string k, DaIBase src, SubDaIBase subdaii)
 {
     myK       = k;
     mySrc     = src;
     mySubDaii = subdaii;
 }
 public SubDaIAdaptBase(string k, DaIBase src)
 {
     myK   = k;
     mySrc = src;
 }