473,321 Members | 1,669 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,321 software developers and data experts.

Coding classes with 1 to N relationships

ree
Most books don't go into how to code one to many relationships. They just
seem to basically cover one to one. Can some one point me out how to guide
me to a link on the net where I can get more information.

By they way I found a book that covered a bit on it but i am confused with
...UnboundedSetByValue in the following examples shown in the book.

LISTING 2.9. THE ApartmentBuilding CLASS DECLARATION
// Tenant
#include “Tenant.h”
class ApartmentBuilding
{
public:
ApartmentBuilding();
~ApartmentBuilding();
.. . .
//## Association: Unnamed
//## Role: ApartmentBuilding::Houses
const UnboundedSetByValue<Tenant> get_Houses() const;
void set_Houses(const UnboundedSetByValue<Tenant> value);
private:
UnboundedSetByValue<Tenant> Houses;
};
LISTING 2.8. THE Tenant CLASS DECLARATION
// ApartmentBuilding
#include “AprtmntB.h”
class Tenant
{
public:
Tenant ();
~Tenant ();
.. . .
//## Association: Unnamed
//## Role: Tenant::Lives at
const ApartmentBuilding get_Lives_at() const;
void set_Lives_at(const ApartmentBuilding value);
private:
ApartmentBuilding Lives_at;
};
-----------
Jul 19 '05 #1
1 1645
"ree" <re*@hotmail.coom> wrote...
Most books don't go into how to code one to many relationships. They just
seem to basically cover one to one. Can some one point me out how to guide
me to a link on the net where I can get more information.

By they way I found a book that covered a bit on it but i am confused with
..UnboundedSetByValue in the following examples shown in the book.
[...]


"UnboundedSetByValue" is not a standard template. Perhaps you could
try using std::set or std::vector instead. In that case you should
get a copy of Nicolai Josuttis' book on the Standard Library or any
other good C++ book, they usually cover at least std::vector use.

Victor
Jul 19 '05 #2

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

Similar topics

4
by: Phil Powell | last post by:
class Parent { var $errorArray = array(); function Parent() { return true; } function getErrorArray() { return $this->errorArray; }
27
by: Stuart Gerchick | last post by:
C++ Coding Standards : 101 Rules, Guidelines, and Best Practices by Herb Sutter, Andrei Alexandrescu is now a month or so away from release. What is people's opinion on this...is it going to be a...
2
by: yackel | last post by:
Hi there, I'm just in the paper-designing stage of an inventory / sales database but am looking for some help and suggestions as it seems a little out of the norm due to the different classes of...
5
by: John | last post by:
Hi, I need some software that will analyze my C# application (consisting of multiple projects and many classes) and show the relationships between classes and methods. I want to visually see...
5
by: Scott Starker | last post by:
Is there anyway to do this? Every time any button is click inside class Form1, MyButtomArray.CharArray (MyButtomArray is a class) gets set (or reset) (bool). Once this is done the class TEC gets...
34
by: Asfand Yar Qazi | last post by:
Hi, I'm creating a library where several classes are intertwined rather tightly. I'm thinking of making them all use pimpls, so that these circular dependancies can be avoided easily, and I'm...
3
by: ooba gooba | last post by:
After doing some work in both Java and ASP.NET, I came back to add some major enhancements to a PHP 4 application I built several years ago. A lot of the database access is currently sprinkled...
19
by: auratius | last post by:
http://www.auratius.co.za/CSharpCodingStandards.html Complete CSharp Coding Standards 1. Naming Conventions and Styles 2. Coding Practices 3. Project Settings and Project Structure 4....
8
by: =?Utf-8?B?cmljaEI=?= | last post by:
I am trying to build a rating engine for a number of users for a list of songs. I havea database design with a user table and a song table and a link table such that each user can rate many songs...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.