remi-fileset.hpp 790 Bytes
Newer Older
Matthieu Dorier's avatar
Matthieu Dorier committed
1 2 3 4 5
/*
 * (C) 2018 The University of Chicago
 * 
 * See COPYRIGHT in top-level directory.
 */
Matthieu Dorier's avatar
Matthieu Dorier committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef __REMI_FILESET_HPP
#define __REMI_FILESET_HPP

#include <string>
#include <map>
#include <set>
#include <thallium/serialization/stl/string.hpp>
#include <thallium/serialization/stl/set.hpp>
#include <thallium/serialization/stl/map.hpp>

struct remi_fileset {

    std::string                       m_class;
    std::string                       m_root;
    std::map<std::string,std::string> m_metadata;
    std::set<std::string>             m_files;
22
    std::set<std::string>             m_directories;
Matthieu Dorier's avatar
Matthieu Dorier committed
23 24 25 26 27 28 29

    template<typename A>
    void serialize(A& ar) {
        ar & m_class;
        ar & m_root;
        ar & m_metadata;
        ar & m_files;
30
        ar & m_directories;
Matthieu Dorier's avatar
Matthieu Dorier committed
31 32 33 34
    }
};

#endif