Hi all
I have some data to process, whith complex mechanism,I put these process
mechanism as plugins.
and design lots of classes to abstract data themselves.
but the question is how to drive them work together.
That cause too much jobs: I should write UI,parser...... almost a completed
system.
The problem is I don't know what these processed data will finally needed to
display to user.
maybe this , may be that, these can not know on design time.
what I need is on outside of program,
I can use some interface to get these data what I want , or push back data,
or told program to recalculate it.
can I have a way to drive c++ code use this script-like way ?
thank you very much
key9 1 1601
Yes you can, although it might be a fair bit of work depending on the
complexity of your codebase. Basically you would need to write Python
extensions to expose your C++ classes as Python modules, using SWIG or
the Python extension code in the Boost C++ libraries. You'd then embed
an interpreter in your program which would allow you to use Python
code within it - either from a script or individual commands.
It's a fairly common use of Python :)
James
On 03/06/06, key9 <ia*****@126.co m> wrote: Hi all
I have some data to process, whith complex mechanism,I put these process mechanism as plugins. and design lots of classes to abstract data themselves.
but the question is how to drive them work together.
That cause too much jobs: I should write UI,parser...... almost a completed system.
The problem is I don't know what these processed data will finally needed to display to user. maybe this , may be that, these can not know on design time.
what I need is on outside of program, I can use some interface to get these data what I want , or push back data, or told program to recalculate it.
can I have a way to drive c++ code use this script-like way ?
thank you very much This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Uwe Mayer |
last post by:
Hi,
in an application I want to provide direct access to the python interpreter
of the running program.
I use rawinput() and exec() to read an input string and a self-made function
to check wether the inputed block is closed and then execute it.
When running python interactively the result of the previous statement is
assigned to the variable "_" and commands like dir() just output their
results to stdout.
|
by: MLH |
last post by:
Where would I go to find a list of the possible return values for X
and their implication when launching..
X=Shell("C:\Windows\wordpad.exe c:\cr\docs\packets\ntrolttr.rtf", 1)
???
|
by: Jay |
last post by:
Is their any way of setting wear the Python Shell window appears on the
screen when I run my program?
I am testing a full screen program with no Window Frame on a comp with
2 monitors and I have to keep pressing the <Window> Key to bring the
Shell to the front and then moving it manually to the other screen
every time I restart the program.
I would like it to just appear on the other screen from the start.
|
by: Stinky Pete |
last post by:
Hi,
With thanx to the group and suggestions to review other news sites,
I've got some code that allows me to open Adobe from Access. As I am
new at this, I still need some help though. The code to get Abobe to
open is working really well, however the referenced file I need is not
being opened. I've tried the path that I've got in the text box via
the cmd prompt and copying the path in Windows Exp and the path does
work. Any...
|
by: uinoma |
last post by:
I want to open notepad in fullscreen mode, but this script that I created can't do that. .
When I open Windows Manager Task, the program is just run in background, not appeared on web server dekstop.
Is the script wrong or missing something?
Please check out this script and give me your ideas.
<?
$WshShell = new COM("WScript.Shell");
| |
by: Krypto |
last post by:
I have been using python shell to test small parts of the big program.
What other ways can I use the shell effectively. My mentor told me
that you can virtually do anything from testing your program to
anything in the shell. Any incite would be useful.
|
by: koutoo |
last post by:
Is it possible to display messages in the python shell? I want to
display error messages based on parameters in my scripts to the
users. Is there another way to display messages other than log
files? Thanks.
Kou
|
by: Alex K |
last post by:
Hello,
Does anyone know if the python shell supports paging or if I should
look into iPython? Thank you so much.
Alex
|
by: lixinyi.23 |
last post by:
Hi!
I'm currently working on a scientific computation software built in
python.
What I want to implement is a Matlab style command window <->
workspace interaction.
For example, you type 'a=1' in the command window, and you see a list
item named 'a' in the workspace.
You double click the icon of the item, and you see its value. You can
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |