Exemplo n.º 1
0
 public void developFilm(cFilm film)
 {
     foreach (cEncryptedPictureFile enc in film.getEncryptedPictureFiles())
     {
         if (File.Exists(Path.Combine(enc.pEncryptedFilePath, enc.pEncryptedFileName)))
         {
             developPictureFile(film, enc.pEncryptedFileName);
         }
     }
 }
Exemplo n.º 2
0
        public object Clone()
        {
            cFilm film = new cFilm
            {
                pAverageSpeed      = this.pAverageSpeed,
                mTotalSpeed        = this.mTotalSpeed,
                pCameraDriver      = this.pCameraDriver,
                pCaptureErrors     = this.pCaptureErrors,
                pCreationTime      = this.pCreationTime,
                pEncryptionKey     = this.pEncryptionKey,
                pEndDate           = this.pEndDate,
                pGroupType         = this.pGroupType,
                pHighestSpeed      = this.pHighestSpeed,
                pInfringements     = this.pInfringements,
                pHighSpeedCount    = this.pHighSpeedCount,
                pJammerCount       = this.pJammerCount,
                pLowestSpeed       = this.pLowestSpeed,
                pLowSpeedCount     = this.pLowSpeedCount,
                pMeasurementErrors = this.pMeasurementErrors,
                pPath            = this.pPath,
                pStartDate       = this.pStartDate,
                pStatsFileName   = this.pStatsFileName,
                pTestPhotos      = this.pTestPhotos,
                pVehiclesChecked = this.pVehiclesChecked
            };

            film.pPictureFileCollection = new List <cPictureFile>();
            foreach (cPictureFile f in this.pPictureFileCollection)
            {
                film.pPictureFileCollection.Add(f);
            }

            film.pEncryptedPictureFileCollection = new List <cEncryptedPictureFile>();
            foreach (cEncryptedPictureFile f in this.pEncryptedPictureFileCollection)
            {
                film.pEncryptedPictureFileCollection.Add(f);
            }

            film.pStatsCollection = new List <IStatEntry>();
            foreach (IStatEntry f in this.pStatsCollection)
            {
                film.pStatsCollection.Add(f);
            }

            film.pVosiCollection = new List <IVosiEntry>();
            foreach (IVosiEntry f in this.pVosiCollection)
            {
                film.pVosiCollection.Add(f);
            }

            return(film);
        }
Exemplo n.º 3
0
        public virtual void ReadFilesFromDisk(cFilm film)
        {
            film.getEncryptedPictureFiles().Clear();

            string[] files = Directory.GetFiles(film.pPath, pEncFileName);

            foreach (string file in files)
            {
                var fi = new FileInfo(file);

                long   fileNumber;
                string message;
                if (getFileNumber(fi.Name, fi.DirectoryName, out fileNumber, out message))
                {
                    var enc = new cEncryptedPictureFile {
                        pEncryptedFileName = fi.Name, pEncryptedFilePath = film.pPath, pEncryptedFileNumber = fileNumber
                    };
                    film.addToEncryptedPictureFiles(enc);
                }
            }
        }
Exemplo n.º 4
0
 public virtual string developVideo(cFilm film, string filePath, string fileName)
 {
     return(string.Empty);
 }
Exemplo n.º 5
0
 public virtual void readVosiFile(cFilm film)
 {
 }
Exemplo n.º 6
0
 public virtual void readStatsFile(cFilm film)
 {
 }
Exemplo n.º 7
0
 public virtual void readKeyFile(cFilm film)
 {
 }
Exemplo n.º 8
0
 public abstract bool developPictureFile(cFilm film, string encFileName);