Any good way to store configuration file?

I need to store some configuration information in a file from Java. This file will be used by a C++ module. I know we can use XMLEncoder to serialize a Java object to XML file. Is there a opensource C++ library that can parse the XML file something similar to XMLDecoder class?

There are plenty of C++ XML parsers, but nothing like the XML decoder class-
Firstly the format used by XML encoder is based on Java objects and is strongly tied to the structure of those objects. They won't exist in a general C++ application.
Secondly, C++ doesn't provide the reflection mechanisms that OO* languages use for that sort of task, so you'd have to have some form of factory pattern, and register all classes that may be created from your XML with that factory (something that may be automated with a little effort).
Pete
* or all other OO languages, if you don't consider having metaclasses as essential to OO-ness

Similar Messages

  • Any good way to store pdf files in oracle 10g?

    have, i have many pdf files, i want to store in database. Any good way to do that in 10g? Or, I have to go to 11?
    thanks,
    t.k.

    mbobak wrote:
    Justin Cave wrote:
    user10217806 wrote:
    Can I store pdf in blob, and still search words in the pdfs?Probably not, no. If you want to search the data inside Oracle, you'll want to look at Oracle Multimedia.I think the correct answer is "not efficiently". :-)Well, there is nothing that prevents you from building Oracle Multimedia yourself and getting similar levels of efficiency. Other than a desire not to invest dozens of man-years replicating delivered functionality, of course.

  • Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happen

    Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happened any idea what causes this??
    iMovie '08, Mac OS X (10.5.8), FCE 4

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Any good way to find out which process is running on which CPU, how long it

    Hi All
    any good way to find out which process is running on which CPU, how long it took, how many threads it has forked, which thread went to which CPU, etc. .
    RPS
    Message was edited by:
    RajeshPS

    Hi All
    any good way to find out which process is running on
    which CPU, how long it took, how many threads it has
    forked, which thread went to which CPU, etc. .Because the scheduler moves threads from CPU to CPU all the time, that would be a lot of information to store. I don't know any easy way to gather it.
    Under Solaris 10, you could write a dtrace script that noted every time one of the processes thread was enqueued or dequeued on a cpu and post-process that.
    That's probably the best way.
    Darren

  • Is there any simple way to create ods files (OpenOffice Calc)?

    Is there any simple way to create ods files (OpenOffice Calc) using ResultSet (from java.sql)?

    Mabe, you can create CVS files (plain text) Ej...
    ====test.cvs=====
    1, "aaa"
    2, "bbb"
    3, "ccc"
    ===============
    Using a "BufferedWriter"

  • Any good way to combine 32 boolean bits to a number?

    I have 32 boolean inputs, and want to combine these 32 boolean to an unsigned number. Is there any good way other than "joint number" or "logic shift & logic and"?
    input:
    32 boolean: boolean 0, boolean 1, ,,, boolean 31
    output:
    32-bit unsigned number: boolean 0 is bit 0, boolean 1 is bit 1,,,,, boolean 31 is bit 31.
    Thanks.

    Darin.K wrote:
    Ben is nudging you towards a mention in the Rube Goldberg thread, which I enjoy as much as the next guy.  Ravens had it right though, you just need a small tweak to get the Boolean Array from the DBL array.  Assuming any non-zero value is TRUE, you can simply do this:
    Bonus version for the FP math junkies.
    Telling someone there IS a bucket of Truth is not the same a pushing (or nudging) them in.
    The questions started to go down the path of ".... this is how I would have done it in C ...." so I was making sure they know where to find the functions in LV.
    Take care,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • My ipad2 freezes when i try to delete a email that has a 78mb pdf attached. Is there any other way to delete this file other than through the email program?

    My ipad2 freezes when i try to delete a email that has a 78mb pdf file attatched. Is there any other way to delete this file other than the email program?

    If it's not MobileMe, use Safari to access the server directly and delet from there. If it is MobileMe, do the same thing but from your computer as the iPad Safari won't connect to MobileMe mail.

  • Enums - a good way to hold configuration data

    Im struggling with a good way to encapsulate configuration data.
    In a configuration class I have this:
    public enum TagResultsSize {
             ALL (false),
             SUBSET (true);         
             TagResultsSize(Boolean limited) {
                this.limited = limited;
             private Boolean limited;         
              public Boolean isLimited() {return limited;}
              private Integer maxTags = 10; // default max values - set by configuration if declared
              public Integer getMaxTags() {
                   return maxTags;
              public void setMaxTags(Integer maxTags) {
                   this.maxTags = maxTags;
        }When the application starts up I read some configuration XML and set the value of maxTags.
    Then anywhere in my code I can request ALL, or a SUBSET of tags to get from the db.
    I do a check if the enum value isLimited and if so get the maxTags value to set in my DAO.
    The idea behind the enum I thought is that I can couple the CONSTANTS with the changing parameters from the configuration.
    Can anyone suggest a better way of managing configuration data such as this?
    Thanks
    Jon
    [Spring Web Development|http://www.springwebdevelopment.com]
    Edited by: JonJackson on Apr 23, 2009 2:16 PM
    Edited by: JonJackson on Apr 23, 2009 2:16 PM
    Edited by: JonJackson on Apr 23, 2009 2:18 PM

    Not really sure what it is you are trying to do. Why wouldn't these equivalent method signatures work just as well:
    public Collection<Foo> getConfiguration(final int maxTags);
    public Collection<Foo> getConfiguration();- Saish

  • Does Apple have any good way of managing iPhones for business?

    I finally broke down and allowed iPhones into our company when Apple introduced the ability to provision phones like phones (e.g. don't have to teather them to a computer to set up).  This and the "business" management tools opened the door, so we got about 30 of them.
    WHAT A HUGE MISTAKE!!!!
    Apple is now going backward.  When a phone comes into our shop, we have to load up iTunes and get the phone to sync before we can do simple things like wipe the phone or troubleshoot "why did my bluetooth quit working".  All of their "enterprise focus" seems to be around security and app control, with nothing I've seen for the day-to-day keeping things running.  (Not saying app control and secuirty are unimportant, just not enough).
    Does Apple have any good business management tools that I'm missing?  I know about MDM, but too much setup for a relatively small number of phones.  Besides, my understanding is the MDM only does app management / security policy.  Right now we use Apple's stand-alone configurator.  Fine for pushing policy and apps, but useless for troubleshooting and day-to-day management (like resetting a phone back to factory configs).
    Also, is my carrior correct that Apple will not allow them to replace phones that have gone bad under warranty?  They told me for the iPhones we have to physically take them to an Apple store for troubleshooting / replacement even after 100% identifying the issue!  That is an hour (at least) wasted to send one of my folks to the store.  I know we don't just have a bad carrior, becaue they happily send out replacement on other brands after troubleshooting over the phone.
    I actually do like the overall look/feel of the iPhones.  But unless Apple becomes much more corporate-friendly, I can only recommend that companies refuse to purchase any iDevice.  BYOD, sure...but when you buy tens or hundreds of phones stick to Android, Blackberry, or even (sorry) Microsoft based devices.

    Does not seem to work that way for us.  We plug the phone in, and the first thing iTunes does is say the phone needs to be "authorized for this computer".  It also states that the phone can only be authorized for x computers.
    It then goes through it's jig while we wait, and finally comes up with the phone.  Only then can we try to wipe / update the phone.  We do stop the sync process, that automatically starts wanting to run.  Maybe has to do with a version difference between what you use and what we use.  I did notice that an older version of iTunes seemed a bit friendlier, but would not support our iPads.
    However, when we were troubleshooting the bug where wireless / bluetooth quits working it was quite a bit more difficult than this for a phone a user handed us.  Troubleshooting steps required that the phone be "restored" in iTunes.  However, iTunes insisted on our providing a password that neither we nor the user knew.  Maybe just learning curve, but it took about an hour before we were able to get that phone to a point where we could reset it.
    Here is a sincere question for you, since you say you support a fleet of phones.  Do you really NOT get annoyed when your tech has to take a iPhone to a computer with iTunes, plug it in, and work from there whenever there is a user issue that needs to have the phone wiped back to factory standard?  This compared to being able to punch a few buttons on a different phone, right there in the users office, then hand it back to the user and say "your are fixed".
    My only assumptions are that IT staff want to solve issues as quickly and efficiently as possible.  Requireing a tech to deal with iTunes for simple procedures is not, IMHO, "as quick and efficient as possible".

  • Is it good idea to store video files in database?

    Hi,
    In my project I am storing everything in database BLOB column.
    Everything includes images,documents,videos and any thing uploaded from form.
    Someone suggested me that video should not be save in database.
    I want to know it is good idea to store everything in database BLOB column?
    - Thanks
    Zohaib.

    But I don't Recommend to store video in Database , Which it will effect on your Space and performance .That is the silliest thing I have ever heard. The alternative to storing it in a database is to store it on the file system, which takes up space and performance just as much.
    Store away - BLOBs are fine for storing videos in the DB
    Someone suggested me that video should not be save in databaseUnless they told you why, and backed it up with actual facts, I'd discount what they said by about 99.9999%

  • RDP for Mac 8.0.5, Where does it store configuration files?

    The old 2.1.0 RDP client would store its RDP configuration files in ~/Documents/RDP Connections, and had plists in Preferences.
    Where does the new 8.0.5 version store RDP configurations and general prefs?
    Thanks!

    Hi,
    We do not have the information about how and where that the App stores the configurations.
    However, if you would like to get the .rdp file, you can export the remote desktop in the App, it will prompt you to select a location to store the .rdp file.
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Any good way to access a folder of hmtl files in weblogic server hard disk

    I know that I can deploy a .war file containing some html and WEB-INF/web.xml file etc. to weblogic server, and then access the webpages in that .war file.
    But is there any more convenient way to be able to lift the restriction of having to put those html files in the .war file beforehand? It is not very flexible to expand/modify the collection of html files. Please give me some advice.
    Thank you.

    Even if you find out how to define an IP address that folder was modified from, in some cases it may lead you to the public WiFi or other internet access areas.

  • What is the BEST way to store pdf files.....

    Hi,
    I developed an application where we store the pdf docs in the database for every participant(i.e user) and participant can login to their account and view their documents. Now the new requirement is to store nearly 50millions+ of documents every year in that same database (we may keep 2yrs worth of documents). Is that okay?? Do you guys have any other better way of storing and retrieving_ the documents(like in the file-system)?, Is database only the best option???
    Thanks
    Edited by: balajiv on Sep 26, 2008 6:13 AM

    JoachimSauer wrote:
    That all depends on your database and how well it handles BLOBs. Storing everything in the DB has the huge advantage of not needing another piece of infrastructure to configure (such as a file server) and using a single technology for all your data access.Then again, storing the files in the DB has the huge disadvantage of the files not being accessible by other applications/users since it's stuck inside the database. It's also a gigantic waste of space as it bloats the database with data that cannot be indexed, related, etc, decreasing performance.

  • TS3090 Is there any good way for using a network account locally on the server?

    We have a bunch of macs at home. I want to be able to login to a laptop and have my account (home dir) in sync with de desktop account in a noninvasive way. 
    For achieving this I thought  promoting one imac to be a network profile server would be a good solution.
    This way we can work on any machine and sync portable home directories (phd) with our laptops.
    The server should also be usable as a workstation.
    One problem is: is possible to login on the server (locally) and work in a network account?
    I know it is possible, but this article describes issues.
    Also i am concerned about perfomance because files wil be mounted over afp rather than being on the harddisk. (one workaround would be to have a phd on the desktop, this would however not be possible on the server itsself (unless you have two copies of the home directory there))
    Does anyone have any experience with a simular situation or perhaps some other helpfull insights.

    Sorry, you must have edited your message. When I saw it, only the title showed .
    Embedded is what you want. You can change the windows apperance (e.g. hide the scroll bars) by changing the VI properties.
    Uncheck "request control" in the web publishing wizard, and it will be read only.
    Works fine here in LabVIEW 7.1. I don't remember if 6.1 had any limitations.
    LabVIEW Champion . Do more with less code and in less time .

  • What is the best way to store temporary files on Azure?

    I am using the Google dot net api to import events from a google calendar.  In order to do the google authorization, it normally uses code like this: 
    private static readonly IAuthorizationCodeFlow flow =
    new GoogleAuthorizationCodeFlow(new GoogleAuthorizationCodeFlow.Initializer
    ClientSecrets = new ClientSecrets
    ClientId = "...........",
    ClientSecret = "............"
    Scopes = new[] { DriveService.Scope.Drive },
    DataStore = new FileDataStore("Calendar.Api.Auth.Store")
    However, the FileDataStore tries to save the auth data locally which doesn't work on Azure.  So, I created my own data store that uses blob storage on Azure.  However, it creates a new file in blob storage every time it is accessed, so I have a ton
    of these temporary files.  I can make a utility to go through and delete these every now and again, but is there a better way to do this?

    Hi,
    The best thing is that each blob has a property which indicate when the particular blob was last modified.
    This value can tell you how old this blob is. And using this value you can select older blobs and delete them.
    You will have to delete them one by one or you can run the code in loop to select all the blobs and delete them.
    For example you can choose to delete blobs which are older then a week or two weeks or a month. So you can choose what blob selection criteria you will use to select the blobs and then delete them.
    CloudBlobClient blobClient = connectionManager.GetBlobServiceClient(storageUri);
    // Next lets select then container which you are looking for your old blobs.
    CloudBlobContainer container = blobClient.GetContainerReference(this.WadBlobContainerName);
    // Now we will select blob query object which will give us the list of selected filtered blobs
    BlobRequestOptions blobQuery = new BlobRequestOptions();
    blobQuery.BlobListingDetails = BlobListingDetails.None;
    blobQuery.UseFlatBlobListing = true;
    // Now we will setup Blob access condition option which will filter all the blobs which are not modified for X (this.DaysToKeep) amount of days
    blobQuery.AccessCondition = AccessCondition.IfNotModifiedSince(DateTime.UtcNow.AddDays(-1 * this.DaysToKeep));
    // Lets Query to do its job
    IEnumerable<IListBlobItem> blobs = container.ListBlobs(blobQuery);
    foreach (IListBlobItem blob in blobs)
    CloudBlob cloudBlob = container.GetBlobReference(blob.Uri.ToString());
    cloudBlob.DeleteIfExists(blobQuery);

Maybe you are looking for

  • Calling a method from another class or accessing a component from another

    Hi all im trying to make a find/replace dialog box my main application form has a jtextpane and when i open up the find and replace dialog box it has two textboxes (find and replace) now i have the code to do the finding on my jtextpane but how do i

  • Short Dump Error when we check the Data Source in RSA3

    Hi. Experts.                    We are using  Data Source 2Lis_13_VDITM and when we try to check in RSA3 for recorts it is going short dump. I am just providing the error information.               An exception occurred that is explained in detail be

  • Library size:  what's "normal"?

    I have around 13,000 images equaling 140 GB. When I first built a library, with normal rendered previews, the library was close to 19 GB. I then rebuilt the library, I believe without previews, and it reduced its size to under 2 GB. Now, my libary ha

  • Run a Program Through my java program

    Good day to you :) I am wondering if there is anyway for me to run an executable (or batch) file though a program I made. Thank you :)

  • Wily Introscope settings for ColfFusion application

    I implemented Wily Introscope to monitor a ColdFusion application on a HP-UX server using 1.4.2.05 HP Hotspot JVM. 1) Introscope settings (probes) reference Java classes and methods. By using the ..../WEB-INF/cfclasses, the only metrics I succeeded t