JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
URLOrigin.h
Go to the documentation of this file.
1 //
2 // Created by Nico on 09/05/2019.
3 //
4 
5 #ifndef JODA_URLORIGIN_H
6 #define JODA_URLORIGIN_H
7 
9 #include "IDPositionOrigin.h"
10 
14 class URLOrigin : public IDPositionOrigin {
15  public:
16  URLOrigin(FILEID url);
17  URLOrigin(FILEID url, long start, long end, int index);
18  std::unique_ptr<RJDocument> reparse(RJMemoryPoolAlloc &alloc) const override;
19  bool isReparsable() const override;
20  ~URLOrigin() override = default;
21  const FILEID &getUrl() const;
22 
23  std::string toString() const override;
24  std::unique_ptr<IOrigin> clone() const override;
25  std::string getStreamName() const override;
26 
27  protected:
28 };
29 
30 #endif // JODA_URLORIGIN_H
unsigned long FILEID
Definition: FileNameRepo.h:12
rapidjson::MemoryPoolAllocator< RJBaseAlloc > RJMemoryPoolAlloc
Definition: RJFwd.h:26
Definition: IDPositionOrigin.h:16
int index
Definition: IDPositionOrigin.h:47
long end
Definition: IDPositionOrigin.h:46
long start
Definition: IDPositionOrigin.h:45
Definition: URLOrigin.h:14
std::string getStreamName() const override
Definition: URLOrigin.cpp:25
std::unique_ptr< RJDocument > reparse(RJMemoryPoolAlloc &alloc) const override
Definition: URLOrigin.cpp:9
URLOrigin(FILEID url)
Definition: URLOrigin.cpp:23
std::unique_ptr< IOrigin > clone() const override
Definition: URLOrigin.cpp:19
std::string toString() const override
Definition: URLOrigin.cpp:14
~URLOrigin() override=default
bool isReparsable() const override
Definition: URLOrigin.cpp:7
const FILEID & getUrl() const
Definition: URLOrigin.cpp:29