Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7586501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:26:40+00:00 2026-05-30T19:26:40+00:00

what does Object persistence mean in c++? Can you explain it with an example

  • 0

what does Object persistence mean in c++?
Can you explain it with an example or provide links to where i could find the answer?
Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:26:42+00:00Added an answer on May 30, 2026 at 7:26 pm

    Most objects cease to exist when they go out of scope. This may be
    when the function in which they were created terminates. It may be
    when the container in which they reside is deleted. At any rate, they
    can be expected to disappear when the program exits. Persistent
    objects are those which survive between successive invocations of the
    program. A classic example of such an object is a database record.

    check out the following links:

    C++ object persistence library similar to eternity

    http://sourceforge.net/projects/litesql/

    http://www.codesynthesis.com/products/odb/doc/manual.xhtml

    http://en.wikipedia.org/wiki/ODB_(C%2B%2B)

    http://drdobbs.com/cpp/184408893

    http://tools.devshed.com/c/a/Web-Development/C-Programming-Persistence/

    C++ doesn’t support persistence directly (there are proposals for adding persistence and reflection to C++ in the future). Persistence support is not as trivial as it may seem at first. The size and memory layout of the same object may vary from one platform to another. Different byte ordering, or endian-ness, complicate matters even further. To make an object persistent, we have to reserve its state in a non-volatile storage device. ie: Write a persistent object to retain its state outside the scope of the program in which it was created.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does hibernate provide a method that returns an object's state (transient, persistent, detached)?
In Ruby (1.8.X) Why does Object both inherit off Kernel and include it? Wouldn't
How does container object like vector in stl get destroyed even though they are
I get this error: System.Reflection.TargetException: Object does not match target type. when trying to
Does creating an object using reflection rather than calling the class constructor result in
We have a .NET object that does a lot of reading/writing with the database.
I am creating a flash object that does some heavy image lifting. What I
Consider a hypothetical method of an object that does stuff for you: public class
This concept seems to trouble me. Why does an NSError object need its pointer
I got this question from this discussion . A method call like object.m does

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.