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

  • Home
  • SEARCH
  • 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 8730317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:59:46+00:00 2026-06-13T08:59:46+00:00

I have a situation where I have an object of a class in C++,

  • 0

I have a situation where I have an object of a class in C++, which needs to be send across process boundaries (process 1 to process 2) using Linux pipes. I searched online on how to do serialization in C++. I found boost, but it requires some changes in the class. In my situation I cannot change the class.

This class has a lot of pointers, and the nesting continues to 3 levels (Class 1 has pointer 1 of type Class 2-> Class 2 has pointer 2 of type Class 3 -> Class 3 has pointer 3 of type class 4 -> Class 4). Is there any way I can send this object using pipes so that it can be recreated in the second process ?

Thanks.

  • 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-06-13T08:59:47+00:00Added an answer on June 13, 2026 at 8:59 am

    You’ll need to serialize the class somehow. How exactly is your choice, but you can do so in a format like JSON, or XML, or some kind of binary format you decide on. Without seeing any more details on your class, there’s not much else to add.

    Another option might be to use Shared memory segments to store the class, but that comes with issues with pointer math, concurrency and other complications.

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

Sidebar

Related Questions

I ran into this situation today. I have an object which I'm testing for
I have situation where my Java class needs to create a ton of certain
I have a class and its companion object which together have some reusable functionality.
My situation I have an entity model with a base class ItemBase which defines
I have a custom object class which I need to encode. I have implementing
I have a situation where I have an object that is loaded back from
I have a situation whereby a thread can retrieve an object from the db,
Situation:- In my code I have to use the LWUIT Component object for the
I'm thinking about a situation where I have an object Transaction, that has quite
i have situation like this: class IData { virtual void get() = 0; virtual

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.