コード例 #1
0
ファイル: BlockStore.cs プロジェクト: ColdMatter/EDMSuite
 public BlockStoreResponse processQuery(BlockStoreQuery query)
 {
     BlockStoreResponse bsr = new BlockStoreResponse();
     bsr.BlockResponses = new List<BlockStoreBlockResponse>();
     foreach(int blockID in query.BlockIDs) bsr.BlockResponses.Add(processBlockQuery(query.BlockQuery, blockID));
     return bsr;
 }
コード例 #2
0
ファイル: BlockStore.cs プロジェクト: bharath87/EDMSuite
        public BlockStoreResponse processQuery(BlockStoreQuery query)
        {
            BlockStoreResponse bsr = new BlockStoreResponse();

            bsr.BlockResponses = new List <BlockStoreBlockResponse>();
            foreach (int blockID in query.BlockIDs)
            {
                bsr.BlockResponses.Add(processBlockQuery(query.BlockQuery, blockID));
            }
            return(bsr);
        }
コード例 #3
0
ファイル: BlockStore.cs プロジェクト: bharath87/EDMSuite
        // querying for average TOFs uses different code - this is because of the need to keep
        // memory consumption under control, and the urge to re-use the old averaging code.
        // The result is that the averaging must be done at the TOFChannelSet level.

        public string processJSONQueryAverage(string jsonQuery)
        {
            BlockStoreQuery query = BsonSerializer.Deserialize <BlockStoreQuery>(jsonQuery);

            return(processBlockQueryAverage(query.BlockQuery, query.BlockIDs).ToJson <BlockStoreBlockResponse>());
        }
コード例 #4
0
ファイル: BlockStore.cs プロジェクト: bharath87/EDMSuite
        public string processJSONQuery(string jsonQuery)
        {
            BlockStoreQuery query = BsonSerializer.Deserialize <BlockStoreQuery>(jsonQuery);

            return(processQuery(query).ToJson <BlockStoreResponse>());
        }