RightEdge Forums
Main
Home
Search
Members
Calendar
Who's On
Welcome Guest
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
»
General
»
Plugin Development
»
IDataAccessor Question
IDataAccessor Question
Rate Topic
Display Mode
Topic Options
Message
Posted 3/11/2010 08:20:55
Post #11133
mseeli
mseeli
We are upgrading our existing data-store with the new version of RE.
I came across the method GetDateTimeAtIndex in IDataAccessor.
What is this supposed to do? When is it called? And what is meant with the index? Index of what?
Markus Seeli
Posted 3/11/2010 08:36:10
Post #11136
billb
billb
See
GetDateTimeAtIndex
.
This will mostly be used internally by RightEdge to pluck data at the specified index in cases where the user has specified start or end dates on the system and we want to get that very specific data set.
mseeli (3/11/2010)
We are upgrading our existing data-store with the new version of RE.
I came across the method GetDateTimeAtIndex in IDataAccessor.
What is this supposed to do? When is it called? And what is meant with the index? Index of what?
Markus Seeli
Posted 3/11/2010 09:34:46
Post #11137
mseeli
mseeli
Hmmm.....
I think I still don't get it
Here is how I see it:
We build a Data-Store that inherits from IDataStore.
In this datastore we have the method GetBarStorage that somehow gets called by RE when it needs to get historical data out of the datastore.
I assume that what is passed back to RE (as a IDataAccessor
) functions kind of like a "delegate" in that it does not contain actual data but rather a way to access the Load-Method to then get the data.
In the Class that implements the IDataAccessor I did not keep a List
as a private Variable, I expected that the List
would just be passed along to RE without keeping a copy in the DataAccessor.
Is this how it is meant to work or do you expect me to keep a copy of the List
in the DataAccessor. (In that case the GetTimeAtIndex would make sense)
Can I assume that GetCount is always called after a Load? At the moment I go and read the database every time GetCount is called but it would be much easyier if I just return the Count of the List.
Posted 3/11/2010 10:23:36
Post #11139
dplaisted
dplaisted
GetCount could be called at any time.
We've released the
source code
to the data storage plugins, so I'd recommend looking at our binary data store and LINQ to SQL data store plugins for examples of how to implement a data store plugin using the new interface.
Daniel
« Prev Topic
|
Next Topic »
Reading This Topic
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators:
billb
,
dplaisted
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
may
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
may
post and upload images.
Forum Jump...
----------------
Forum Home
Search
Members List
Calendar
Who's Online
----------------
RightEdge Announcements
|-- RightEdge Announcements
General
|-- General Discussion
|-- Community Support
|-- Suggestion Box
|-- Plugin Development
Trading
|-- Trading Systems
|---- Uploaded Trading Systems
|-- Technical Indicators
|-- Order Execution
|-- Trading Vehicles
Programming and Software Development
|-- Programming Questions
All times are GMT -5:00, Time now is 12:56am
2005-2007 © RightEdge Systems