473,387 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

accessing data with different views

Hi,
once again. I have some data, and different ways to view them. The
data's are say points when one writes on the screen using stylus. They
forms certain character. I am reading the points in a deque and
removing older points (In sort I am storing only a portion of the data
in memory).
Now there are ways to view the datas.
Say Page-Line -Word -Character -Points
This can be done only when someone recognizes the characters.
Or alternatively Page -Stroke (a single stroke) ->Points
Even say Page -Stroke -Segment (Up or down stroke) -Points.

Thus what becomes necessary, NOT to store the Points in character,
character in word etc using contained relationship. Alternative I am
thinking is to store points in a deque, and Character stores 2
iterators pointing to the portion in the deque. Similarly Word stores a
pair of iterator for the deque of character. It will go similar way.
And when something pop_front from a deque, it will do so for all, to
make consistancy. Like if a line gets removed from its deque, it will
remove all words from word's deque, which in turn will remove all
characters from character deque. And it will go on. If something is
shared between two branches only one pop_front will be trigerred (Like
point is shared by all brunches, removing a Page won't remove points
twice from the deque)

Now the questions are,
1) Is this way is having any known problem? Any other way to share same
data with different viewes?
2) If Character wants to store pointer (iterator) a portion of the
points what will I store exactly? 2 int (or size_t) and construct a
range from them and return ? or two iterators directly ( at present I
can't do it as they are not default constructable and sometimes the
range is computed later, like a Stroke knows the range of points during
construction time, but knows range of segments after segment
computation). Or pointer to the iterator (quite crazy idea! )
3) How the removal can be made a synchronized one, ie. removal of one
level automatically removes its sub levels . An contained relationship
do that automatically, but do not support multiple hierarchical view
which I need. An alternative way is to store pointer (shared ) of the
data in the container, but not finding a proper way to implement it.

Any suggestions are welcome.
Thanks
abir

Oct 28 '06 #1
0 1058

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Jerry Weinstein | last post by:
Hi, I know about stored procedures and that they can speed up data entry via the SQL 'insert ' statement. However, one drawback to this method is that using the stored procedure still requires...
1
by: Win2003InstallIssues | last post by:
Hello, I am relatively new to doing non-trivial SQL queries. I have to get data out of 8 diff views based on a parameter Name. There is a view having name-ssn pairs. All other views have SSN...
6
by: Chad Richardson | last post by:
I have not used the copy objects wizard that much. I used it today to copy 4 views from my dev box to production. It copied the views, but also wiped out my data in all the tables that the views...
3
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different...
9
by: AnandaSim | last post by:
Hi All, I've had Access 97, 2000 connections to the corporate Oracle database for a few years now - but seldom use it. When I did use it years ago, performance was not fast but the features were...
4
by: Sean Connery | last post by:
I have a Microsoft UI Process Application Block that is controlling child forms in an MDI parent container. The views node in the app.config file has been set to stayOpen=false. Because there...
5
by: Andy | last post by:
I'm having trouble accessing an unmanaged long from a managed class in VC++.NET When I do, the contents of the variable seem to be mangled. If I access the same variable byte-by-byte, I get the...
0
by: Nathan | last post by:
Hi, Got a frustrating problem. I have sql express, running on a 2k3 server on my network. i have created a linked server to an access db located on the same server. The tables on the linked...
15
by: naveenkongati | last post by:
Hi, How do we connect a Oracle Remote server using php. Can we pass hostname,port,db,username,password into the oci_connect() function? As per oci_connect() syntax is seems to be not possible , is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.