public void developFilm(cFilm film) { foreach (cEncryptedPictureFile enc in film.getEncryptedPictureFiles()) { if (File.Exists(Path.Combine(enc.pEncryptedFilePath, enc.pEncryptedFileName))) { developPictureFile(film, enc.pEncryptedFileName); } } }
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); }
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); } } }
public virtual string developVideo(cFilm film, string filePath, string fileName) { return(string.Empty); }
public virtual void readVosiFile(cFilm film) { }
public virtual void readStatsFile(cFilm film) { }
public virtual void readKeyFile(cFilm film) { }
public abstract bool developPictureFile(cFilm film, string encFileName);