File: DatasetCollection.hpp

package info (click to toggle)
pbseqlib 5.3.5%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,020 kB
  • sloc: cpp: 77,250; python: 331; sh: 103; makefile: 41
file content (41 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _BLASR_DATASET_COLLECTION_HPP_
#define _BLASR_DATASET_COLLECTION_HPP_

#include <iostream>
#include <map>
#include <string>
#include <vector>

#include <hdf/HDFData.hpp>
#include <hdf/HDFGroup.hpp>

class DatasetCollection
{
public:
    std::vector<std::string> fieldNames;
    std::map<std::string, bool> includedFields;
    std::map<std::string, bool> requiredFields;

    void MakeFieldRequired(std::string &fieldName);

    void MakeFieldOptional(std::string &fieldName);

    void InitializeAllFields(bool value);

    void InitializeFields(std::vector<std::string> &fieldList);

    void InitializeFields(std::vector<char *> &fieldList);

    int IncludeField(std::string fieldName);

    bool FieldIsIncluded(std::string fieldName);

    bool ContainsField(std::string fieldName);

    template <typename T_Dataset>
    bool InitializeDataset(HDFGroup &group, T_Dataset &dataset, std::string datasetName);
};

#include "DatasetCollectionImpl.hpp"

#endif