Revision 842775ab src/eventlog/ieventlog.h

View differences:

src/eventlog/ieventlog.h
90 90
        virtual FileReader *getFileReader() = 0;
91 91

  
92 92
        /**
93
         * Returns the distance between subsequent keyframes in terms of event numbers.
94
         */
95
        virtual int getKeyframeBlockSize() = 0;
96

  
97
        /**
93 98
         * Returns the number of events parsed so far.
94 99
         */
95 100
        virtual eventnumber_t getNumParsedEvents() = 0;
......
139 144
         * Returns the requested event or NULL if there is no such event included in the log.
140 145
         * The given event number may not be included in the log.
141 146
         */
142
        virtual IEvent *getEventForEventNumber(eventnumber_t eventNumber, MatchKind matchKind = EXACT) = 0;
147
        virtual IEvent *getEventForEventNumber(eventnumber_t eventNumber, MatchKind matchKind = EXACT, bool useCacheOnly = false) = 0;
143 148
        /**
144 149
         * Returns the requested event or NULL if there is no such event included in the log.
145 150
         * The given simulation time may not be included in the log.
146 151
         */
147
        virtual IEvent *getEventForSimulationTime(simtime_t simulationTime, MatchKind matchKind = EXACT) = 0;
152
        virtual IEvent *getEventForSimulationTime(simtime_t simulationTime, MatchKind matchKind = EXACT, bool useCacheOnly = false) = 0;
148 153

  
149 154
        /**
150 155
         * Finds the closest event log entry containing the given text.
......
161 166
         */
162 167
        virtual IEvent *getApproximateEventAt(double percentage) = 0;
163 168

  
164
        /**
165
         * returns true if the trace file includes EventEndEntries
166
         */
167
        virtual bool isLegacyTrace() = 0;
168 169
    public:
169 170
        /**
170
         * Returns the event at the given instance. 0 means the parameter event will be returned.
171
         * Returns the event at the given distance. 0 means the parameter event will be returned.
171 172
         */
172 173
        virtual IEvent *getNeighbourEvent(IEvent *event, eventnumber_t distance = 1);
173 174

  
......
183 184
        virtual double getApproximatePercentageForEventNumber(eventnumber_t eventNumber);
184 185

  
185 186
        /**
186
         * Prints all or only the events in the requested range from the log.
187
         * The given event numbers may not be included in the log.
187
         * Prints the contents into specified file.
188
         * The given event numbers may not be present in the log.
188 189
         */
189
        virtual void printEvents(FILE *file = stdout, eventnumber_t fromEventNumber = -1, eventnumber_t toEventNumber = -1, bool outputEventLogMessages = true);
190
        /**
191
         * Prints initialization entries and calls printEvents.
192
         * The given event numbers may not be included in the log.
193
         */
194
        virtual void print(FILE *file = stdout, eventnumber_t fromEventNumber = -1, eventnumber_t toEventNumber = -1, bool outputInitializationEntries = true, bool outputEventLogMessages = true);
190
        virtual void print(FILE *file = stdout, eventnumber_t fromEventNumber = -1, eventnumber_t toEventNumber = -1, bool outputEventLogMessages = true);
191

  
192
    protected:
193
        void clearInternalState();
195 194
};
196 195

  
197 196
NAMESPACE_END

Also available in: Unified diff