Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C++ Programm

Empfohlene Antworten

Hallöchen.

Mein Ausbilder hat mir dieses hier gegeben, um es zu verstehen ô.O

Und zwar unter dem Hauptaspekt der Vererbung.

Ich habe bisher angefangen, mich ein wenig mit C# rumzuschlagen,

aber dies hie rist jetzt in C++.

Ich habe absolut keine Ahnung, was ich damit anfangen soll, bzw. wie

es warum so funktioniert.

Kann mir das wer erklären, was da so vor sich geht?

Wäre echt lieb!

template <class T>

	BOOL BenutzerVerwaltung::RemapUsers(CMyTableDB<T>& table, const Dict(long, long)&dictUsers)

	{

		CTPA(T*) entries;

		T       *entry;

		long     oldKey = 0;


		table.Auflisten(entries);


		FOR (entries, entry)

		{

			if (entry == NULL)

			{

				continue;

			}


			oldKey = entry->ForeignKey();


			if (dictUsers.Lookup(oldKey, newKey) != && oldKey != newKey)

			{

				entry->Remap(newKey);

				table.ModEintrag(entry, entry->PrimaryKey());

			}

		}


		ArrayLoeschen(entries);

		return TRUE;

	}


	<Migration>

	...

		if (Synchronisiere(dbID))

		{

			RemapUsers(tPflegeDB->m_Nachricht, dictBenutzer);

			RemapUsers(tPflegeDB->m_NachrichtKonfig, dictBenutzer);

			RemapUsers(tPflegeDB->m_Controls, dictBenutzer);

			RemapUsers(tPflegeDB->m_UserRechteES, dictBenutzer);

		}


	...

	</Migration>


	class Mappable

	{

		public:

			Mappable(void);

			~Mappable(void);


			virtual long PrimaryKey() = 0;

			virtual long ForeignKey() = 0;

			virtual void Remap(long primaryKey) = 0;

	};


	class CNachricht : Mappable

	{

	...

		//Mappable Implementation


		long PrimaryKey()           { return Z_NA; }

		long ForeignKey()			{ return iBenutzer; }

		void Remap(long primaryKey) { iBenutzer = primaryKey; }

	};

}

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.