CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to create a dictionary from a *char[]?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2023, 06:33
Default How to create a dictionary from a *char[]?
  #1
New Member
 
Jesus
Join Date: Sep 2021
Posts: 11
Rep Power: 4
jgs55 is on a distinguished road
Dear Foamers,

I have a pointer to an array of chars, which has the structure of a dictionary. I need to create a dictionary from that pointer, but I am not clear on how to do so.

I checked the dictionary constructor, and I can create it from a Istream object:
Code:
dictionary (Istream &is)
But I do not know how to convert the *char[] to Istream. Your help will be appreciated. Thanks in advance!
jgs55 is offline   Reply With Quote

Reply

Tags
constructor, dictionary, pointer

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dictionary in turbulence model NewKid OpenFOAM Programming & Development 4 February 18, 2019 21:16
create the file *.foam phongstar OpenFOAM 12 October 14, 2018 18:06
driftFluxFoam viscosity model modification problem dleduc OpenFOAM Programming & Development 15 October 1, 2018 09:37
ill defined primitiveEntry starting at keyword 'value' on line 197 ChangeDictionary Struggle_Achieve OpenFOAM Pre-Processing 2 December 20, 2017 03:58
Actuator disk model audrich FLUENT 0 September 21, 2009 07:06


All times are GMT -4. The time now is 18:50.