5 #ifndef JODA_FILEORIGIN_H
6 #define JODA_FILEORIGIN_H
29 std::unique_ptr<IOrigin>
clone()
const override;
31 std::string
toString()
const override;
50 static std::vector<ParseInterval>
mergeIntervals(std::vector<ParseInterval> &&intervals);
unsigned long FILEID
Definition: FileNameRepo.h:12
rapidjson::MemoryPoolAllocator< RJBaseAlloc > RJMemoryPoolAlloc
Definition: RJFwd.h:26
Definition: FileOrigin.h:17
std::unique_ptr< RJDocument > reparse(RJMemoryPoolAlloc &alloc) const override
Definition: FileOrigin.cpp:15
ParseInterval getInterval() const
Definition: FileOrigin.cpp:57
FILEID getFile() const
Definition: FileOrigin.cpp:55
static std::vector< std::unique_ptr< RJDocument > > parseIntervals(RJMemoryPoolAlloc &alloc, std::vector< ParseInterval > &&intervals)
Definition: FileOrigin.cpp:92
std::string getStreamName() const override
Definition: FileOrigin.cpp:66
bool isReparsable() const override
Definition: FileOrigin.cpp:13
std::unique_ptr< IOrigin > clone() const override
Definition: FileOrigin.cpp:51
FileOrigin(FILEID id)
Definition: FileOrigin.cpp:70
static std::vector< ParseInterval > mergeIntervals(std::vector< ParseInterval > &&intervals)
Definition: FileOrigin.cpp:72
std::pair< FILEID, std::pair< long, long > > ParseInterval
Definition: FileOrigin.h:21
std::string toString() const override
Definition: FileOrigin.cpp:61
Definition: IDPositionOrigin.h:16
int index
Definition: IDPositionOrigin.h:47
long end
Definition: IDPositionOrigin.h:46
long start
Definition: IDPositionOrigin.h:45