Esempio n. 1
0
        private IEnumerable <LoggedData> ReadLoggedData(string documentsPath)
        {
            var loggedDataFiles = Directory.EnumerateFiles(documentsPath, DatacardConstants.ConvertToSearchPattern(DatacardConstants.LoggedDataFile));

            foreach (var loggedDataFile in loggedDataFiles)
            {
                var loggedData = _protobufSerializer.Read <LoggedData>(loggedDataFile);
                foreach (var operationData in loggedData.OperationData)
                {
                    ImportSpatialRecords(documentsPath, operationData);
                    ImportSections(documentsPath, operationData);
                    ImportMeters(documentsPath, operationData);
                }

                yield return(loggedData);
            }
        }
Esempio n. 2
0
        private IEnumerable <GuidanceAllocation> ReadGuidanceAllocations(string documentsPath)
        {
            var loggedDataFiles = Directory.EnumerateFiles(documentsPath, DatacardConstants.ConvertToSearchPattern(DatacardConstants.GuidanceAllocationFile));

            return(loggedDataFiles.Select(loggedDataFile => _protobufSerializer.Read <GuidanceAllocation>(loggedDataFile)));
        }
Esempio n. 3
0
        private IEnumerable <WorkItem> ReadWorkItems(string documentsPath)
        {
            var loggedDataFiles = Directory.EnumerateFiles(documentsPath, DatacardConstants.ConvertToSearchPattern(DatacardConstants.WorkItemFile));

            return(loggedDataFiles.Select(loggedDataFile => _protobufSerializer.Read <WorkItem>(loggedDataFile)));
        }