<commit_before>#pragma once
//------------------------------------------------------------------------------
/**
    @class Oryol::FileSystem
    @ingroup IO
    @brief base-class for FileSystem handlers

    Subclasses of FileSystem provide a specific file-system implementation
    (e.g. HttpFileSystem, HostFileSystem, etc).
*/
#include "Core/String/StringAtom.h"
#include "Core/RefCounted.h"
#include "IO/IOProtocol.h"

namespace Oryol {
    
class FileSystem : public RefCounted {
    OryolClassDecl(FileSystem);
public:
    /// default constructor
    FileSystem();
    /// destructor
    ~FileSystem();

    /// called once on main-thread
    virtual void Init(const StringAtom& scheme);
    /// called per IO-lane
    virtual void InitLane();
    /// called when a IOProtocol::Read message is received
    virtual void onRead(const Ptr<IOProtocol::Read>& msg);
    /// called when a IOProtocol::Write message is received
    virtual void onWrite(const Ptr<IOProtocol::Write>& msg);

    StringAtom scheme;
};
    
} // namespace Oryol<commit_msg>missing virtual dtor for FileSystem<commit_after>#pragma once
//------------------------------------------------------------------------------
/**
    @class Oryol::FileSystem
    @ingroup IO
    @brief base-class for FileSystem handlers

    Subclasses of FileSystem provide a specific file-system implementation
    (e.g. HttpFileSystem, HostFileSystem, etc).
*/
#include "Core/String/StringAtom.h"
#include "Core/RefCounted.h"
#include "IO/IOProtocol.h"

namespace Oryol {
    
class FileSystem : public RefCounted {
    OryolClassDecl(FileSystem);
public:
    /// default constructor
    FileSystem();
    /// destructor
    virtual ~FileSystem();

    /// called once on main-thread
    virtual void Init(const StringAtom& scheme);
    /// called per IO-lane
    virtual void InitLane();
    /// called when a IOProtocol::Read message is received
    virtual void onRead(const Ptr<IOProtocol::Read>& msg);
    /// called when a IOProtocol::Write message is received
    virtual void onWrite(const Ptr<IOProtocol::Write>& msg);

    StringAtom scheme;
};
    
} // namespace Oryol
{'fraction_non_alphanumeric': 0.17399438727782976, 'fraction_numerical': 0.0, 'mean_word_length': 2.4724025974025974, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6936154', 'n_tokens_mistral': 586, 'n_tokens_neox': 577, 'n_words': 174}